bug 900964 - GLContext::GLErrorToString changed to a static function - r=bjacob
authorGuillaume Abadie <gabadie@mozilla.com>
Fri, 02 Aug 2013 17:08:55 -0400
changeset 153545 ba01dc47edc3dda7e3505648de8346d1cba29942
parent 153544 c0e1646540dae63b32f59f6f9193eb8a4c9d224f
child 153546 9c06599384ade5c5bf52132707d38c9bdb421a59
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbjacob
bugs900964
milestone25.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
bug 900964 - GLContext::GLErrorToString changed to a static function - r=bjacob
gfx/gl/GLContext.h
--- a/gfx/gl/GLContext.h
+++ b/gfx/gl/GLContext.h
@@ -560,18 +560,17 @@ public:
 private:
     bool mHasRobustness;
 
 
 // -----------------------------------------------------------------------------
 // Error handling
 public:
 
-    // TODO: this function should be a static
-    const char* GLErrorToString(GLenum aError) const
+    static const char* GLErrorToString(GLenum aError)
     {
         switch (aError) {
             case LOCAL_GL_INVALID_ENUM:
                 return "GL_INVALID_ENUM";
             case LOCAL_GL_INVALID_VALUE:
                 return "GL_INVALID_VALUE";
             case LOCAL_GL_INVALID_OPERATION:
                 return "GL_INVALID_OPERATION";