mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
hack fix around crash
This commit is contained in:
parent
b5ee150ff3
commit
ab530f5d80
@ -7524,7 +7524,10 @@ upload_texture(CLP(TextureContext) *gtc, bool force) {
|
||||
}
|
||||
}
|
||||
|
||||
get_engine()->texture_uploaded(tex);
|
||||
GraphicsEngine *engine = get_engine();
|
||||
nassertr(engine != (GraphicsEngine *)NULL, false);
|
||||
engine = GraphicsEngine::get_global_ptr(); // temp hack
|
||||
engine->texture_uploaded(tex);
|
||||
gtc->mark_loaded();
|
||||
|
||||
report_my_gl_errors();
|
||||
|
Loading…
x
Reference in New Issue
Block a user