aglDestroyPixelFormat(m_aglFormat);
}
+/* static */
+bool wxGLCanvasBase::IsDisplaySupported(const int *attribList)
+{
+ AGLPixelFormat aglFormat = ChoosePixelFormat(attribList);
+
+ if ( !aglFormat )
+ return false;
+
+ aglDestroyPixelFormat(aglFormat);
+
+ return true;
+}
+
bool wxGLCanvas::SwapBuffers()
{
AGLContext context = aglGetCurrentContext();
void wxGLCanvas::MacVisibilityChanged()
{
- if ( MacIsReallyShown() != m_macCanvasIsShown )
+ if ( IsShownOnScreen() != m_macCanvasIsShown )
{
m_macCanvasIsShown = !m_macCanvasIsShown;
MacUpdateView();