Commit: fe9b3dd5f9af186cc04ce3e5bbbc08d993b9cf8a
Author: Jeroen Bakker
Date:   Mon Feb 14 09:16:06 2022 +0100
Branches: blender-v3.1-release
https://developer.blender.org/rBfe9b3dd5f9af186cc04ce3e5bbbc08d993b9cf8a

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.

===================================================================

M       source/blender/draw/engines/image/image_instance_data.hh

===================================================================

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;

_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
List details, subscription details or unsubscribe:
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to