From: Stefan Csomor Date: Sun, 29 Mar 2009 17:13:27 +0000 (+0000) Subject: bracketing opengl code that doesn't work on OpenGL ES X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/04ce16a8707de253826da7b46d03896307a51625 bracketing opengl code that doesn't work on OpenGL ES git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@59913 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/glcanvas.h b/include/wx/glcanvas.h index 4722a99a94..8b82b78c3a 100644 --- a/include/wx/glcanvas.h +++ b/include/wx/glcanvas.h @@ -118,10 +118,11 @@ public: // miscellaneous helper functions // ------------------------------ +#ifndef wxHAS_OPENGL_ES // call glcolor() for the colour with the given name, return false if // colour not found bool SetColour(const wxString& colour); - +#endif // return true if the extension with given name is supported // diff --git a/src/common/glcmn.cpp b/src/common/glcmn.cpp index 4f5f9c6025..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() {