diff options
author | Jeroen Bakker <jeroen@blender.org> | 2020-03-23 11:09:33 +0300 |
---|---|---|
committer | Jeroen Bakker <jeroen@blender.org> | 2020-03-23 11:10:37 +0300 |
commit | 46c0da6e69c38973e5616bb0a0f7f2ff7b43d5fa (patch) | |
tree | 31796d902893735245bc6756ea05ba17af754447 /source/blender/gpu/intern/gpu_shader.c | |
parent | 0c571db4add35ae78089cd8e88fa6f7a9125b123 (diff) |
Fix T74964: Stereo Viewport Rendering Not Working
On some platforms the stereo viewport rendering was not working. The
issue was that the fragment shader and vertex shaded didn't match. Some
platforms will remove the non-matching in/out parameters and blender
needs to provide only the optimal set of parameters. Other platform
still want to receive data for the parameters that aren't used.
This fix uses the correct vertex shader that matches the fragment shader
making both platforms render the same result.
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.c')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.c b/source/blender/gpu/intern/gpu_shader.c index 21de07a62f1..c6ffcfa2d86 100644 --- a/source/blender/gpu/intern/gpu_shader.c +++ b/source/blender/gpu/intern/gpu_shader.c @@ -1014,7 +1014,7 @@ static const GPUShaderStages builtin_shader_stages[GPU_SHADER_BUILTIN_LEN] = { }, [GPU_SHADER_2D_IMAGE_OVERLAYS_STEREO_MERGE] = { - .vert = datatoc_gpu_shader_2D_image_vert_glsl, + .vert = datatoc_gpu_shader_2D_vert_glsl, .frag = datatoc_gpu_shader_image_overlays_stereo_merge_frag_glsl, }, [GPU_SHADER_2D_IMAGE] = |