summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/libEGL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libEGL.c b/src/libEGL.c
index 291e16f..45e8ffb 100644
--- a/src/libEGL.c
+++ b/src/libEGL.c
@@ -23,6 +23,6 @@ eglCreateWindowSurface(EGLDisplay display, EGLConfig config, NativeWindowType na
{
static union { EGLSurface (*fun)(EGLDisplay, EGLConfig, NativeWindowType, EGLint const*); void *ptr; } orig;
if (!orig.ptr) orig.ptr = dlsym(RTLD_NEXT, "eglCreateWindowSurface");
- struct ANativeWindow *win = (struct ANativeWindow*)native_window;
- return orig.fun(display, config, glfwGetX11Window(win->glfw), attrib_list);
+ struct ANativeWindow *window = (struct ANativeWindow*)native_window;
+ return orig.fun(display, config, glfwGetX11Window(window->glfw), attrib_list);
}