projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36f909a
)
argh! commit 1485 was cut and paste instead of copy paste...
author
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 23 Nov 2012 10:35:24 +0000
(10:35 +0000)
committer
Diederick Niehorster
<dcnieho@gmail.com>
Fri, 23 Nov 2012 10:35:24 +0000
(10:35 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1487
7f0cb862
-5218-0410-a997-
914c9d46530a
src/mswin/fg_state_mswin.c
patch
|
blob
|
history
diff --git
a/src/mswin/fg_state_mswin.c
b/src/mswin/fg_state_mswin.c
index
c293ebf
..
c4598d4
100644
(file)
--- a/
src/mswin/fg_state_mswin.c
+++ b/
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);