commit f61c4a22fd31932362891f43573906da27213dfc
parent df958acdda45c14321ce975e8dbaeabbdac20387
Author: Michael Savage <mikejsavage@gmail.com>
Date: Sat, 11 Nov 2017 11:56:59 +0200
Don't fullscreen release builds because it causes problems on W10
Diffstat:
gl.cc | | | 18 | +++++++++--------- |
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/gl.cc b/gl.cc
@@ -134,13 +134,13 @@ GLFWwindow * gl_init( WindowType window_type ) {
const GLFWvidmode * mode = glfwGetVideoMode( monitor );
if( window_type == WINDOW_GAME ) {
-#if RELEASE_BUILD
- width = mode->width;
- height = mode->height;
-#else
+// #if RELEASE_BUILD
+// width = mode->width;
+// height = mode->height;
+// #else
width = mode->width * 3 / 4;
height = mode->height * 3 / 4;
-#endif
+// #endif
}
glfwWindowHint( GLFW_CLIENT_API, GLFW_OPENGL_API );
@@ -152,11 +152,11 @@ GLFWwindow * gl_init( WindowType window_type ) {
glfwWindowHint( GLFW_OPENGL_DEBUG_CONTEXT, 1 );
#endif
-#if RELEASE_BUILD
- GLFWmonitor * window_monitor = window_type == WINDOW_GAME ? monitor : NULL;
-#else
+// #if RELEASE_BUILD
+// GLFWmonitor * window_monitor = window_type == WINDOW_GAME ? monitor : NULL;
+// #else
GLFWmonitor * window_monitor = NULL;
-#endif
+// #endif
GLFWwindow * window = glfwCreateWindow( width, height, "Medfall", window_monitor, NULL );
if( !window ) {