X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_window_egl.c;fp=src%2Fegl%2Ffg_window_egl.c;h=cc048bebc2b8ef022f787edfa0634d62d27b4d39;hb=8b89204d87959df0470d88af985a385e1ff28b59;hp=d83a3eac47e51411403a601f52d9fa5167da97dc;hpb=49df0cf2fb8f84ff03fcfc91f4e2b4c4e5774854;p=freeglut diff --git a/src/egl/fg_window_egl.c b/src/egl/fg_window_egl.c index d83a3ea..cc048be 100644 --- a/src/egl/fg_window_egl.c +++ b/src/egl/fg_window_egl.c @@ -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);