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