Răsfoiți Sursa

fix bug with texture matrix on different nodes

David Rose 19 ani în urmă
părinte
comite
c6e1025459
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  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) {
+    _state._texture = 0;
     _state._tex_matrix = _target._tex_matrix;
   }