mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-01 17:35:34 -04:00
make current before releasing
This commit is contained in:
parent
774b6018d5
commit
4c142c3a4a
@ -100,6 +100,7 @@ make_gsg() {
|
||||
void glxGraphicsWindow::
|
||||
release_gsg() {
|
||||
if (_gsg != (GraphicsStateGuardian *)NULL) {
|
||||
glXMakeCurrent(_display, _xwindow, _context);
|
||||
GraphicsWindow::release_gsg();
|
||||
glXDestroyContext(_display, _context);
|
||||
_context = (GLXContext)0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user