bug with reissued textures

This commit is contained in:
David Rose 2005-09-22 22:32:38 +00:00
parent 5fde282d94
commit 2189ba3258
1 changed files with 4 additions and 0 deletions

View File

@ -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());
}
////////////////////////////////////////////////////////////////////