Browse Source

dont check opengl errors in release mode

dmuratshin 8 years ago
parent
commit
c63b1d5dc3
1 changed files with 2 additions and 0 deletions
  1. 2 0
      oxygine/src/core/gl/oxgl.cpp

+ 2 - 0
oxygine/src/core/gl/oxgl.cpp

@@ -249,6 +249,7 @@ namespace oxygine
 {
     void checkGLError()
     {
+#ifdef OX_DEBUG
         int gl_error = glGetError();
         if (gl_error != GL_NO_ERROR)
         {
@@ -258,5 +259,6 @@ namespace oxygine
                 exit(0);
             }
         }
+#endif
     }
 }