commit af35db1ddbcc4937c6a9b0d2bb9d0f76bb67e2b6 parent 083f48a40613c0ad31fc21f7e35f380d2e8071df Author: Michael Savage <mikejsavage@gmail.com> Date: Wed Aug 2 18:35:28 -0700 Don't create debug contexts in release mode Diffstat:
gl.cc | | | 2 | ++ |
diff --git a/gl.cc b/gl.cc @@ -129,7 +129,9 @@ GLFWwindow * gl_init( WindowType window_type ) { glfwWindowHint( GLFW_OPENGL_FORWARD_COMPAT, GL_TRUE ); glfwWindowHint( GLFW_CONTEXT_VERSION_MAJOR, 3 ); glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 ); +#if !RELEASE_BUILD glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, 1 ); +#endif #if RELEASE_BUILD GLFWmonitor * window_monitor = window_type == WINDOW_GAME ? monitor : NULL;