X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fx11%2Ffg_structure_x11.c;h=7deba22b5997590251a811df574bc9e0cf370926;hb=002dae879eda329f38fe65cb6f99d4f481a2eb47;hp=cbc912971d15c909c790c528572961bcfab115a3;hpb=5b3d339481bac6dbaeb599bffc1325f716585bfe;p=freeglut diff --git a/src/x11/fg_structure_x11.c b/src/x11/fg_structure_x11.c index cbc9129..7deba22 100644 --- 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 * @@ -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; }