mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-24 18:08:44 +00:00
Fix gl context not being deleted with custom window
This commit is contained in:
parent
8bd8b3ea3e
commit
f0051bb24d
1 changed files with 2 additions and 2 deletions
|
@ -1629,7 +1629,7 @@ bool CDriverGL::destroyWindow()
|
||||||
if (_hDC)
|
if (_hDC)
|
||||||
wglMakeCurrent(_hDC, NULL);
|
wglMakeCurrent(_hDC, NULL);
|
||||||
|
|
||||||
if (_DestroyWindow && _hRC)
|
if (_hRC)
|
||||||
{
|
{
|
||||||
wglDeleteContext(_hRC);
|
wglDeleteContext(_hRC);
|
||||||
_hRC = NULL;
|
_hRC = NULL;
|
||||||
|
@ -1644,7 +1644,7 @@ bool CDriverGL::destroyWindow()
|
||||||
#elif defined(NL_OS_MAC)
|
#elif defined(NL_OS_MAC)
|
||||||
#elif defined(NL_OS_UNIX)
|
#elif defined(NL_OS_UNIX)
|
||||||
|
|
||||||
if (_DestroyWindow && _ctx)
|
if (_DestroyWindow && _ctx) // FIXME: _DestroyWindow may need to be removed here as well
|
||||||
glXDestroyContext(_dpy, _ctx);
|
glXDestroyContext(_dpy, _ctx);
|
||||||
|
|
||||||
_ctx = NULL;
|
_ctx = NULL;
|
||||||
|
|
Loading…
Reference in a new issue