EGL: reuse fgPlatformSetWindow for calling eglMakeCurrent
git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1239 7f0cb862-5218-0410-a997-914c9d46530a
This commit is contained in:
parent
782974c8cf
commit
aef742b7c3
@ -103,8 +103,7 @@ void fghPlatformOpenWindowEGL( SFG_Window* window )
|
||||
EGLSurface surface = eglCreateWindowSurface(display, config, window->Window.Handle, NULL);
|
||||
if (surface == EGL_NO_SURFACE)
|
||||
fgError("Cannot create EGL window surface, err=%x\n", eglGetError());
|
||||
if (eglMakeCurrent(display, surface, surface, window->Window.Context) == EGL_FALSE)
|
||||
fgError("eglMakeCurrent: err=%x\n", eglGetError());
|
||||
fgPlatformSetWindow(window);
|
||||
|
||||
//EGLint w, h;
|
||||
//eglQuerySurface(display, surface, EGL_WIDTH, &w);
|
||||
|
Reference in New Issue
Block a user