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);