mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 10:22:45 -04:00
fix texture state cleanup between scenes
This commit is contained in:
parent
2218f79963
commit
dc7c34db33
@ -2341,7 +2341,7 @@ do_issue_texture() {
|
||||
DO_PSTATS_STUFF(_texture_state_pcollector.add_level(1));
|
||||
|
||||
int num_stages = _target._texture->get_num_on_stages();
|
||||
int num_old_stages = 0;
|
||||
int num_old_stages = _max_texture_stages;
|
||||
if (_state._texture != (TextureAttrib *)NULL) {
|
||||
num_old_stages = _state._texture->get_num_on_stages();
|
||||
}
|
||||
|
@ -5034,7 +5034,7 @@ do_issue_texture() {
|
||||
DO_PSTATS_STUFF(_texture_state_pcollector.add_level(1));
|
||||
|
||||
int num_stages = _target._texture->get_num_on_stages();
|
||||
int num_old_stages = 0;
|
||||
int num_old_stages = _max_texture_stages;
|
||||
if (_state._texture != (TextureAttrib *)NULL) {
|
||||
num_old_stages = _state._texture->get_num_on_stages();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user