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>2020-09-22 12:17:17 +0300
committerJeroen Bakker <jeroen@blender.org>2020-09-22 12:17:17 +0300
commit085329f114beb904ed3ef0c8ec6894ee26916704 (patch)
tree6338485ad5ac859d2224c2d4ad0a957133b7b1d7 /source/blender/gpu
parent222ed9f78170116e1739a5cef65d31322d72f507 (diff)
Fix T81002: Images drawn with the Python gpu module no longer draw on top in the Image Editor
Since {D8234} the image editor is drawn using a depth buffer. When using `draw_texture_2d` the image is drawn using the 2D_IMAGE shader. inside the vertex buffer the image was pushed to the background. This was introduced by {648924333234} what seems to be out dated as we have done several overhauls in this area. (workbench refactor, overlay engine refactor, color management pipeline). This patch removes the pushing of the image to the background.
Diffstat (limited to 'source/blender/gpu')
-rw-r--r--source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl1
1 files changed, 0 insertions, 1 deletions
diff --git a/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl b/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
index cdb066c9c52..95055d4decb 100644
--- a/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
+++ b/source/blender/gpu/shaders/gpu_shader_2D_image_vert.glsl
@@ -9,6 +9,5 @@ out vec2 texCoord_interp;
void main()
{
gl_Position = ModelViewProjectionMatrix * vec4(pos.xy, 0.0f, 1.0f);
- gl_Position.z = 1.0;
texCoord_interp = texCoord;
}