mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
visit multitexture during prepare_scene() too
This commit is contained in:
parent
4d09989995
commit
472e203d67
@ -384,9 +384,12 @@ r_prepare_scene(const RenderState *state,
|
||||
if (attrib != (const RenderAttrib *)NULL) {
|
||||
const TextureAttrib *ta;
|
||||
DCAST_INTO_V(ta, attrib);
|
||||
Texture *texture = ta->get_texture();
|
||||
if (texture != (Texture *)NULL) {
|
||||
texture->prepare(prepared_objects);
|
||||
int num_stages = ta->get_num_on_stages();
|
||||
for (int i = 0; i < num_stages; ++i) {
|
||||
Texture *texture = ta->get_on_texture(ta->get_on_stage(i));
|
||||
if (texture != (Texture *)NULL) {
|
||||
texture->prepare(prepared_objects);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user