// although on MSW it works even if the window is still hidden, it doesn't
// work in other ports (notably X11-based ones) and documentation mentions
// that SetCurrent() can only be called for a shown window, so check for it
- wxASSERT_MSG( IsShownOnScreen(), _T("can't make hidden GL canvas current") );
+ wxASSERT_MSG( IsShownOnScreen(), wxT("can't make hidden GL canvas current") );
return context.SetCurrent(*static_cast<const wxGLCanvas *>(this));
}
+#ifndef wxHAS_OPENGL_ES
bool wxGLCanvasBase::SetColour(const wxString& colour)
{
wxColour col = wxTheColourDatabase->Find(colour);
return true;
}
+#endif
wxGLCanvasBase::~wxGLCanvasBase()
{
/* static */
bool wxGLCanvasBase::IsExtensionInList(const char *list, const char *extension)
{
+ if ( !list )
+ return false;
+
for ( const char *p = list; *p; p++ )
{
// advance up to the next possible match