From Stephan Huber, "attached you'll find a fix for a crash when closeImplementation gets

called more than once."
This commit is contained in:
Robert Osfield
2010-05-12 11:41:36 +00:00
parent 68a1ed2dcf
commit b1179978f5

View File

@@ -115,6 +115,11 @@ void PixelBufferCarbon::closeImplementation()
if (_pbuffer) aglDestroyPBuffer(_pbuffer);
if (_context) aglDestroyContext(_context);
if (_pixelformat) aglDestroyPixelFormat(_pixelformat);
_pbuffer = NULL;
_context = NULL;
_pixelformat = NULL;
_valid = _realized = false;
}