From 2189ba3258ce645d79e7f955c0c3944436411ae2 Mon Sep 17 00:00:00 2001 From: David Rose Date: Thu, 22 Sep 2005 22:32:38 +0000 Subject: [PATCH] bug with reissued textures --- panda/src/display/graphicsStateGuardian.cxx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/panda/src/display/graphicsStateGuardian.cxx b/panda/src/display/graphicsStateGuardian.cxx index 8778db389b..3aa4de2be0 100644 --- a/panda/src/display/graphicsStateGuardian.cxx +++ b/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()); } ////////////////////////////////////////////////////////////////////