mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
more fixes for state problems
This commit is contained in:
parent
d6072c0c18
commit
9e60165ccf
@ -5866,10 +5866,13 @@ set_state_and_transform(const RenderState *target,
|
|||||||
determine_effective_texture();
|
determine_effective_texture();
|
||||||
int prev_active = _num_active_texture_stages;
|
int prev_active = _num_active_texture_stages;
|
||||||
do_issue_texture();
|
do_issue_texture();
|
||||||
if (prev_active != _num_active_texture_stages) {
|
|
||||||
_state._tex_gen = 0;
|
// Since the TexGen and TexMatrix states depend partly on the
|
||||||
_state._tex_matrix = 0;
|
// particular set of textures in use, we should force both of
|
||||||
}
|
// those to be reissued every time we change the texture state.
|
||||||
|
_state._tex_gen = 0;
|
||||||
|
_state._tex_matrix = 0;
|
||||||
|
|
||||||
_state._texture = _target._texture;
|
_state._texture = _target._texture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user