commit 6dc73fb63b4936865256a6d6bdec25097e94a7bb parent 7ca57aeef51bc18bf2876ec596f0f2253169d02e Author: Michael Savage <mikejsavage@gmail.com> Date: Fri Jul 7 21:29:29 +0300 Only set the window monitor in release builds Diffstat:
gl.cc | | | 5 | +++++ |
diff --git a/gl.cc b/gl.cc @@ -131,7 +131,12 @@ GLFWwindow * gl_init( WindowType window_type ) { glfwWindowHint( GLFW_CONTEXT_VERSION_MINOR, 3 ); glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, 1 ); +#if RELEASE_BUILD GLFWmonitor * window_monitor = window_type == WINDOW_GAME ? monitor : NULL; +#else + GLFWmonitor * window_monitor = NULL; +#endif + GLFWwindow * window = glfwCreateWindow( width, height, "Medfall", window_monitor, NULL ); if( !window ) { FATAL( "glfwCreateWindow" );