Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/blender/viewport_compositor/intern/texture_pool.cc')
-rw-r--r--source/blender/viewport_compositor/intern/texture_pool.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/source/blender/viewport_compositor/intern/texture_pool.cc b/source/blender/viewport_compositor/intern/texture_pool.cc
index 2c08bf90335..7fcc5a4d010 100644
--- a/source/blender/viewport_compositor/intern/texture_pool.cc
+++ b/source/blender/viewport_compositor/intern/texture_pool.cc
@@ -61,9 +61,9 @@ GPUTexture *TexturePool::acquire_color(int2 size)
return acquire(size, GPU_RGBA16F);
}
-/* Vectors are and should be stored in RGBA textures. */
GPUTexture *TexturePool::acquire_vector(int2 size)
{
+ /* Vectors are stored in RGBA textures because RGB textures have limited support. */
return acquire(size, GPU_RGBA16F);
}
@@ -77,4 +77,9 @@ void TexturePool::release(GPUTexture *texture)
textures_.lookup(TexturePoolKey(texture)).append(texture);
}
+void TexturePool::reset()
+{
+ textures_.clear();
+}
+
} // namespace blender::viewport_compositor