From 809dad066bcedc7b66e1bb67e011929785fb1480 Mon Sep 17 00:00:00 2001 From: dcnieho Date: Fri, 23 Nov 2012 10:35:24 +0000 Subject: [PATCH] argh! commit 1485 was cut and paste instead of copy paste... git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1487 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/mswin/fg_state_mswin.c | 1 + 1 file changed, 1 insertion(+) diff --git a/freeglut/freeglut/src/mswin/fg_state_mswin.c b/freeglut/freeglut/src/mswin/fg_state_mswin.c index c293ebf..c4598d4 100644 --- a/freeglut/freeglut/src/mswin/fg_state_mswin.c +++ b/freeglut/freeglut/src/mswin/fg_state_mswin.c @@ -177,6 +177,7 @@ int fgPlatformGlutGet ( GLenum eWhat ) RECT winRect; POINT topLeft = {0,0}; + freeglut_return_val_if_fail( fgStructure.CurrentWindow != NULL, 0 ); #if defined(_WIN32_WCE) GetWindowRect( fgStructure.CurrentWindow->Window.Handle, &winRect);