mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-04 10:54:24 -04:00
Oops, minor correction
This commit is contained in:
parent
e28653275d
commit
66b5af633b
@ -837,8 +837,10 @@ make_texture_buffer(const string &name, int x_size, int y_size,
|
|||||||
*fbp, WindowProperties::size(x_size, y_size),
|
*fbp, WindowProperties::size(x_size, y_size),
|
||||||
flags, get_gsg(), get_host());
|
flags, get_gsg(), get_host());
|
||||||
|
|
||||||
if (buffer != (GraphicsOutput *)NULL && tex != (Texture *)NULL) {
|
if (buffer != (GraphicsOutput *)NULL) {
|
||||||
buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy);
|
if (tex != (Texture *)NULL) {
|
||||||
|
buffer->add_render_texture(tex, to_ram ? RTM_copy_ram : RTM_bind_or_copy);
|
||||||
|
}
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user