X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_structure_x11.c;h=3e223507819f2ec36251195619399d0f1312052f;hb=9b7930fcbb8dde80f9b6de15bf184f7dce1adb1f;hp=cbc912971d15c909c790c528572961bcfab115a3;hpb=5b3d339481bac6dbaeb599bffc1325f716585bfe;p=freeglut diff --git a/src/x11/fg_structure_x11.c b/src/x11/fg_structure_x11.c index cbc9129..3e22350 100644 --- a/src/x11/fg_structure_x11.c +++ b/src/x11/fg_structure_x11.c @@ -27,13 +27,20 @@ */ #include -#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; }