Disable/enable lighting in the "one.c" demo (John Fay)
[freeglut] / src / freeglut_structure.c
index 583f744..6aa02fd 100644 (file)
@@ -91,6 +91,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title,
      * Initialize the object properties
      */
     window->ID = ++fgStructure.WindowID;
+    window->State.OldHeight = window->State.OldWidth = -1;
 
     fgListInit( &window->Children );
     if( parent )