X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Ffreeglut_structure.c;h=e092429d77651e04ee327b0d15eb27a6a0a3543d;hb=7d3fb73c0bcb69fa03207765eca712d386a11cb8;hp=1d064b68bd96461d28780bb281194a31de5bc52d;hpb=1b9a554a58e5595d9512540df60a3d681dc784a9;p=freeglut diff --git a/src/freeglut_structure.c b/src/freeglut_structure.c index 1d064b6..e092429 100644 --- a/src/freeglut_structure.c +++ b/src/freeglut_structure.c @@ -97,6 +97,7 @@ SFG_Window* fgCreateWindow( SFG_Window* parent, const char* title, window->State.IgnoreKeyRepeat = GL_FALSE; window->State.KeyRepeating = GL_FALSE; + window->State.IsFullscreen = GL_FALSE; /* * Open the window now. The fgOpenWindow() function is system @@ -219,12 +220,6 @@ void fgDestroyWindow( SFG_Window* window ) fghClearCallBacks( window ); fgCloseWindow( window ); -#if TARGET_HOST_UNIX_X11 - if (window->Window.FBConfig != NULL) - { - XFree( window->Window.FBConfig ); - } -#endif free( window ); if( fgStructure.CurrentWindow == window ) fgStructure.CurrentWindow = NULL;