Added glXDestryContext to help clean up OpenGL.

This commit is contained in:
Robert Osfield
2007-01-04 14:34:53 +00:00
parent ff195bddf5
commit a0374d7c85

View File

@@ -579,7 +579,8 @@ void GraphicsWindowX11::closeImplementation()
if (_display && _window)
{
//glXDestroyContext(_display, _glxContext );
glXDestroyContext(_display, _glxContext );
XDestroyWindow(_display, _window);
XFlush( _display );
@@ -588,6 +589,7 @@ void GraphicsWindowX11::closeImplementation()
_window = 0;
_parent = 0;
_glxContext = 0;
if(_visualInfo)
{