Applied Bruce Merry's patch fixing bug #206 (segfault on shutdown in the AMD/ATI...
[freeglut] / src / x11 / fg_structure_x11.c
index cbc9129..3e22350 100644 (file)
  */
 
 #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 )
 {
+#ifdef EGL_VERSION_1_0
+    fghPlatformCreateWindowEGL(window);
+#else
     window->Window.pContext.FBConfig = NULL;
+#endif
 
     window->State.pWState.OldHeight = window->State.pWState.OldWidth = -1;
 }