-
- wxCHECK_RET( vi, "invalid visual for OpenGl" );
-
- if( other != 0 )
- m_glContext = glXCreateContext( GDK_DISPLAY(), vi, other->m_glContext, GL_TRUE );
- else
- m_glContext = glXCreateContext( GDK_DISPLAY(), vi, None, GL_TRUE );
-
- wxCHECK_RET( m_glContext, "Couldn't create OpenGl context" );
+
+ wxCHECK_RET( vi, _T("invalid visual for OpenGl") );
+
+ m_glContext = glXCreateContext( GDK_DISPLAY(), vi,
+ other ? other->m_glContext : None,
+ GL_TRUE );
+
+ if ( !m_glContext )
+ {
+ wxFAIL_MSG( _T("Couldn't create OpenGl context") );
+ }