Add support for X11+EGL.
[freeglut] / src / x11 / fg_structure_x11.c
index cbc9129..e1d5eb4 100644 (file)
@@ -33,7 +33,11 @@ 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;
 }