projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
if user opens menu in parent window and then clicked child window, the menu wasn...
[freeglut]
/
src
/
fg_window.c
diff --git
a/src/fg_window.c
b/src/fg_window.c
index
5c431ea
..
3b61192
100644
(file)
--- a/
src/fg_window.c
+++ b/
src/fg_window.c
@@
-150,6
+150,8
@@
void fgOpenWindow( SFG_Window* window, const char* title,
window->Window.attribute_v_normal = -1;
fgInitGL2();
window->Window.attribute_v_normal = -1;
fgInitGL2();
+
+ window->State.NeedToInitContext = GL_TRUE;
}
/*
}
/*
@@
-324,8
+326,6
@@
void FGAPIENTRY glutIconifyWindow( void )
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutIconifyWindow" );
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutIconifyWindow" );
FREEGLUT_EXIT_IF_NOT_INITIALISED ( "glutIconifyWindow" );
FREEGLUT_EXIT_IF_NO_WINDOW ( "glutIconifyWindow" );
- fgStructure.CurrentWindow->State.Visible = GL_FALSE;
-
fgPlatformGlutIconifyWindow ();
fgStructure.CurrentWindow->State.Redisplay = GL_FALSE;
fgPlatformGlutIconifyWindow ();
fgStructure.CurrentWindow->State.Redisplay = GL_FALSE;