git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1179
7f0cb862-5218-0410-a997-
914c9d46530a
}
fghChooseConfigEGL(&window->Window.pContext.egl.Config);
- fghCreateNewContextEGL(window);
+ window->Window.Context = fghCreateNewContextEGL(window);
/* Wait until window is available and OpenGL context is created */
/* Normally events are processed through glutMainLoop(), but the
/**
* Initialize an EGL context for the current display.
*/
-void fghCreateNewContextEGL( SFG_Window* window ) {
+EGLContext fghCreateNewContextEGL( SFG_Window* window ) {
EGLContext context;
EGLDisplay eglDisplay = fgDisplay.pDisplay.egl.Display;
if (ver != 2)
fgError("Wrong GLES major version: %d\n", ver);
- window->Window.Context = context;
+ return context;
}
/*
extern int fghChooseConfigEGL(EGLConfig* config);
extern void fghPlatformOpenWindowEGL( SFG_Window* window );
-extern void fghCreateNewContextEGL( SFG_Window* window );
+extern EGLConfig fghCreateNewContextEGL( SFG_Window* window );
extern void fghPlatformCloseWindowEGL( SFG_Window* window );
#endif