diff options
Diffstat (limited to 'source/blender/gpu/intern/gpu_shader.cc')
-rw-r--r-- | source/blender/gpu/intern/gpu_shader.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/gpu/intern/gpu_shader.cc b/source/blender/gpu/intern/gpu_shader.cc index 508d9112fc0..e4af25500af 100644 --- a/source/blender/gpu/intern/gpu_shader.cc +++ b/source/blender/gpu/intern/gpu_shader.cc @@ -575,6 +575,10 @@ void GPU_shader_bind(GPUShader *shader) GPU_matrix_bind(shader->interface); GPU_shader_set_srgb_uniform(shader->interface); } + + if (GPU_matrix_dirty_get()) { + GPU_matrix_bind(shader->interface); + } } void GPU_shader_unbind(void) |