X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_structure_egl.c;h=135f049075bcb310f109bc7be550b31c5d26dff1;hb=2c12c9eb8d63cabac2d4113b4f54fdf53da8368c;hp=0466bc8aa21818e273fe02de9e3df8b5cb3bd1dd;hpb=7fbb15bc63c7937cab772bd942883e3811acbabf;p=freeglut diff --git a/src/egl/fg_structure_egl.c b/src/egl/fg_structure_egl.c index 0466bc8..135f049 100644 --- a/src/egl/fg_structure_egl.c +++ b/src/egl/fg_structure_egl.c @@ -1,5 +1,5 @@ /* - * freeglut_structure_egl.c + * fg_structure_egl.c * * Windows and menus need tree structure * @@ -26,9 +26,11 @@ #include #include "fg_internal.h" -extern SFG_Structure fgStructure; - -void fgPlatformCreateWindow ( SFG_Window *window ) +/** + * Initialize default platform-specific fields in SFG_Window + */ +void fghPlatformCreateWindowEGL ( SFG_Window *window ) { - window->Window.pContext.eglSurface = EGL_NO_SURFACE; + window->Window.pContext.egl.Surface = EGL_NO_SURFACE; + window->Window.pContext.egl.Config = NULL; }