projects
/
freeglut
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
moved static variables and functions that should not have stuck behind in fg_joystick...
[freeglut]
/
src
/
x11
/
fg_structure_x11.c
diff --git
a/src/x11/fg_structure_x11.c
b/src/x11/fg_structure_x11.c
index
cbc9129
..
7deba22
100644
(file)
--- a/
src/x11/fg_structure_x11.c
+++ b/
src/x11/fg_structure_x11.c
@@
-1,5
+1,5
@@
/*
/*
- * freeglut_structure.c
+ * fg_structure.c
*
* Windows and menus need tree structure
*
*
* Windows and menus need tree structure
*
@@
-27,13
+27,20
@@
*/
#include <GL/freeglut.h>
*/
#include <GL/freeglut.h>
-#include "../fg_internal.h"
+#include "fg_internal.h"
+#ifdef EGL_VERSION_1_0
+#include "egl/fg_structure_egl.h"
+#endif
extern SFG_Structure fgStructure;
void fgPlatformCreateWindow ( SFG_Window *window )
{
extern SFG_Structure fgStructure;
void fgPlatformCreateWindow ( SFG_Window *window )
{
+#ifdef EGL_VERSION_1_0
+ fghPlatformCreateWindowEGL(window);
+#else
window->Window.pContext.FBConfig = NULL;
window->Window.pContext.FBConfig = NULL;
+#endif
window->State.pWState.OldHeight = window->State.pWState.OldWidth = -1;
}
window->State.pWState.OldHeight = window->State.pWState.OldWidth = -1;
}