From 30b37547b8a30806d2543a12a169d0eeaa32ccec Mon Sep 17 00:00:00 2001 From: rdb Date: Wed, 29 Apr 2009 19:30:20 +0000 Subject: [PATCH] Re-issue color and colorscale when changed (eliminate flickering in shadergen) --- panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx index 4e32e6e6d3..c9fcdade8a 100755 --- a/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx +++ b/panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx @@ -3277,6 +3277,10 @@ set_state_and_transform(const RenderState *target, do_issue_color_scale(); _state_mask.set_bit(color_slot); _state_mask.set_bit(color_scale_slot); + if (_current_shader_context) { + _current_shader_context->issue_parameters(this, Shader::SSD_color); + _current_shader_context->issue_parameters(this, Shader::SSD_colorscale); + } } int cull_face_slot = CullFaceAttrib::get_class_slot();