mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
glgsg: Fix possibility of simple RAM image going out of scope
This commit is contained in:
parent
ea61e53ab2
commit
54de9f9fa4
@ -13853,7 +13853,8 @@ upload_simple_texture(CLP(TextureContext) *gtc) {
|
|||||||
#endif
|
#endif
|
||||||
GLenum external_format = GL_BGRA;
|
GLenum external_format = GL_BGRA;
|
||||||
|
|
||||||
const unsigned char *image_ptr = tex->get_simple_ram_image();
|
CPTA_uchar image = tex->get_simple_ram_image();
|
||||||
|
const unsigned char *image_ptr = image.p();
|
||||||
if (image_ptr == nullptr) {
|
if (image_ptr == nullptr) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user