projects
/
freeglut
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49df0cf
)
EGL: reuse fgPlatformSetWindow for calling eglMakeCurrent
author
Sylvain Beucler
<beuc@beuc.net>
Sun, 15 Apr 2012 18:45:54 +0000
(18:45 +0000)
committer
Sylvain Beucler
<beuc@beuc.net>
Sun, 15 Apr 2012 18:45:54 +0000
(18:45 +0000)
git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1239
7f0cb862
-5218-0410-a997-
914c9d46530a
src/egl/fg_window_egl.c
patch
|
blob
|
history
diff --git
a/src/egl/fg_window_egl.c
b/src/egl/fg_window_egl.c
index
d83a3ea
..
cc048be
100644
(file)
--- 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);