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:
authorJeroen Bakker <jeroen@blender.org>2022-02-14 11:16:06 +0300
committerJeroen Bakker <jeroen@blender.org>2022-02-14 11:21:04 +0300
commitfe9b3dd5f9af186cc04ce3e5bbbc08d993b9cf8a (patch)
treea3ca9ed7f057cf28fb7e0d150b192dd3b63fcdae /source/blender/draw/engines
parent33dde170cecf04b97597e02281e28bd98bb26b3f (diff)
Image Engine: Limit the number of interal textures.
Currently one a single texture slot is used to update the screen. Current design is implemented to use multiple textures. for now limit the number of texture slots to 1.
Diffstat (limited to 'source/blender/draw/engines')
-rw-r--r--source/blender/draw/engines/image/image_instance_data.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/draw/engines/image/image_instance_data.hh b/source/blender/draw/engines/image/image_instance_data.hh
index 1a7a20b8b9a..77b771a9110 100644
--- a/source/blender/draw/engines/image/image_instance_data.hh
+++ b/source/blender/draw/engines/image/image_instance_data.hh
@@ -36,7 +36,7 @@
*
* 4 textures are used to reduce uploading screen space textures when translating the image.
*/
-constexpr int SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN = 4;
+constexpr int SCREEN_SPACE_DRAWING_MODE_TEXTURE_LEN = 1;
struct IMAGE_InstanceData {
struct Image *image;