Browse Source

fix bug with texture matrix on different nodes

David Rose 19 years ago
parent
commit
c6e1025459
1 changed files with 1 additions and 0 deletions
  1. 1 0
      panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

+ 1 - 0
panda/src/dxgsg9/dxGraphicsStateGuardian9.cxx

@@ -3267,6 +3267,7 @@ set_state_and_transform(const RenderState *target,
   }
   }
 
 
   if (_target._tex_matrix != _state._tex_matrix) {
   if (_target._tex_matrix != _state._tex_matrix) {
+    _state._texture = 0;
     _state._tex_matrix = _target._tex_matrix;
     _state._tex_matrix = _target._tex_matrix;
   }
   }