Fixed bug where if statement didn't have parenthesis, causing it to just exit

git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1666 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
dcnieho 2014-01-24 10:32:52 +00:00
parent 52db42d186
commit 318f0d5ad9

View File

@ -266,10 +266,11 @@ int fgPlatformGetModifiers (int mod)
void fgPlatformProcessSingleEvent ( void ) void fgPlatformProcessSingleEvent ( void )
{ {
if(fgStructure.CurrentWindow == NULL) if(fgStructure.CurrentWindow == NULL) {
//XXX Is this right? Would this just cause a whole lot of busy looping while we wait for events? //XXX Is this right? Would this just cause a whole lot of busy looping while we wait for events?
LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing"); LOGW("fgPlatformProcessSingleEvent: Missing current window. Skipping event processing");
return; return;
}
int domain; int domain;
do do