From aef742b7c33a8d78607f5c1a08fe6ff86df701a9 Mon Sep 17 00:00:00 2001 From: beuc Date: Sun, 15 Apr 2012 18:45:54 +0000 Subject: [PATCH] EGL: reuse fgPlatformSetWindow for calling eglMakeCurrent git-svn-id: https://svn.code.sf.net/p/freeglut/code/trunk@1239 7f0cb862-5218-0410-a997-914c9d46530a --- freeglut/freeglut/src/egl/fg_window_egl.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/freeglut/freeglut/src/egl/fg_window_egl.c b/freeglut/freeglut/src/egl/fg_window_egl.c index d83a3ea..cc048be 100644 --- a/freeglut/freeglut/src/egl/fg_window_egl.c +++ b/freeglut/freeglut/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);