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-01-31 11:57:51 +0300
committerJeroen Bakker <jeroen@blender.org>2022-01-31 11:57:51 +0300
commitcfa235b89d686e00456e6d7af99442e5a73ffed8 (patch)
tree10c6bc17f305fc0b384fca8eb93c1445db525538 /source/blender/draw/tests
parent07514def194a78fbb70931d5fbd002248e8f3c34 (diff)
Image Editor: Fix background drawing of empty tiles.
Empty (UDIM) tiles where drawn with a transparency checkerboard. They should be rendered with a border background. The cause is that the image engine would select a single area that contained all tiles and draw them as being part of an image. The fix is to separate the color and depth part of the image engine shader and only draw the depths of tiles that are enabled.
Diffstat (limited to 'source/blender/draw/tests')
-rw-r--r--source/blender/draw/tests/shaders_test.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/draw/tests/shaders_test.cc b/source/blender/draw/tests/shaders_test.cc
index b97298cbe95..80f87eea7ca 100644
--- a/source/blender/draw/tests/shaders_test.cc
+++ b/source/blender/draw/tests/shaders_test.cc
@@ -183,9 +183,8 @@ DRAW_TEST(gpencil_glsl_shaders)
static void test_image_glsl_shaders()
{
- IMAGE_shader_library_ensure();
-
EXPECT_NE(IMAGE_shader_image_get(), nullptr);
+ EXPECT_NE(IMAGE_shader_depth_get(), nullptr);
IMAGE_shader_free();
}