Browse Source

bug with reissued textures

David Rose 20 years ago
parent
commit
2189ba3258
1 changed files with 4 additions and 0 deletions
  1. 4 0
      panda/src/display/graphicsStateGuardian.cxx

+ 4 - 0
panda/src/display/graphicsStateGuardian.cxx

@@ -753,6 +753,10 @@ end_scene() {
   // Put the state into the 'unknown' state, forcing a reload.
   _last_state = 0;
   _state.clear_to_zero();
+
+  // We need to reset this to force a dynamic texture to be reloaded
+  // next frame even if it is the only texture in the scene.
+  _current_texture = DCAST(TextureAttrib, TextureAttrib::make_all_off());
 }
 
 ////////////////////////////////////////////////////////////////////