git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@47648
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
other ? other->m_aglContext : NULL);
if ( !m_aglContext )
wxLogAGLError("aglCreateContext");
other ? other->m_aglContext : NULL);
if ( !m_aglContext )
wxLogAGLError("aglCreateContext");
-
- return;
- if ( !aglEnable(m_aglContext, AGL_BUFFER_RECT) )
- wxLogAGLError("aglEnable(AGL_BUFFER_RECT)");
}
wxGLContext::~wxGLContext()
}
wxGLContext::~wxGLContext()
if ( !aglSetInteger(context, AGL_BUFFER_RECT, parms) )
wxLogAGLError("aglSetInteger(AGL_BUFFER_RECT)");
if ( !aglSetInteger(context, AGL_BUFFER_RECT, parms) )
wxLogAGLError("aglSetInteger(AGL_BUFFER_RECT)");
+ if ( !aglEnable(context, AGL_BUFFER_RECT) )
+ wxLogAGLError("aglEnable(AGL_BUFFER_RECT)");
+
if ( !aglUpdateContext(context) )
wxLogAGLError("aglUpdateContext");
}
if ( !aglUpdateContext(context) )
wxLogAGLError("aglUpdateContext");
}