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=f88cd8a7143a17c9fb4e475012a7112654f467f1;hb=c229e12e3fcdbda830cedc61beaaa4e6b367b17b;hp=ad0ee22623aa5d1740490f24c308b178f7c01e0d;hpb=528c1d5f1b59c997928091b30fe33199ff3cc529;p=freeglut diff --git a/src/egl/fg_window_egl.c b/src/egl/fg_window_egl.c index ad0ee22..f88cd8a 100644 --- a/src/egl/fg_window_egl.c +++ b/src/egl/fg_window_egl.c @@ -125,3 +125,13 @@ void fghPlatformCloseWindowEGL( SFG_Window* window ) window->Window.pContext.egl.Surface = EGL_NO_SURFACE; } } + +void fgPlatformSetWindow ( SFG_Window *window ) +{ + if (!eglMakeCurrent( + fgDisplay.pDisplay.egl.Display, + window->Window.pContext.egl.Surface, + window->Window.pContext.egl.Surface, + window->Window.Context)) + fgError("eglMakeCurrent: err=%x\n", eglGetError()); +}