medfall

A super great game engine
Log | Files | Refs

commit fd0fe89fc8b534a708c000ebfc7b04eab266b3ec
parent 3a767a340ce3744e501a55b1d2c4de62a4261c9b
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Sat, 23 Dec 2017 19:46:13 +0200

Don't snap the cursor in debug builds

Diffstat:
gl.cc | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/gl.cc b/gl.cc @@ -178,10 +178,12 @@ GLFWwindow * gl_init( WindowType window_type ) { window_size = v2u32( checked_cast< u32 >( width ), checked_cast< u32 >( height ) ); +#if RELEASE_BUILD if( window_type == WINDOW_GAME ) { glfwSetCursorPos( window, width / 2, height / 2 ); glfwSetWindowFocusCallback( window, glfw_focus_callback ); } +#endif glfwMakeContextCurrent( window );