git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@11852
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
bool wxGLApp::InitGLVisual(int *attribList)
{
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
- return (fmt != NULL);
+ if (fmt != NULL) {
+ aglDestroyPixelFormat(fmt);
+ return true;
+ } else
+ return false;
}
wxGLApp::~wxGLApp(void)
bool wxGLApp::InitGLVisual(int *attribList)
{
AGLPixelFormat fmt = ChoosePixelFormat(attribList);
- return (fmt != NULL);
+ if (fmt != NULL) {
+ aglDestroyPixelFormat(fmt);
+ return true;
+ } else
+ return false;
}
wxGLApp::~wxGLApp(void)