X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/5c33522fca7cddc441a316f5b9fb50d7685435ba..b18e2046af6c8eaf6e867ba18dd9410dbd7dfcf7:/src/common/glcmn.cpp diff --git a/src/common/glcmn.cpp b/src/common/glcmn.cpp index b3e1f57502..ff3aa28601 100644 --- a/src/common/glcmn.cpp +++ b/src/common/glcmn.cpp @@ -62,6 +62,7 @@ bool wxGLCanvasBase::SetCurrent(const wxGLContext& context) const return context.SetCurrent(*static_cast(this)); } +#ifndef wxHAS_OPENGL_ES bool wxGLCanvasBase::SetColour(const wxString& colour) { wxColour col = wxTheColourDatabase->Find(colour); @@ -88,6 +89,7 @@ bool wxGLCanvasBase::SetColour(const wxString& colour) return true; } +#endif wxGLCanvasBase::~wxGLCanvasBase() { @@ -118,6 +120,9 @@ void wxGLCanvasBase::OnSize(wxSizeEvent& WXUNUSED(event)) /* 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