From acb4f63cfb2057da98e3f4e35f2802352afc746b Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 9 Nov 2012 21:20:55 +0100 Subject: [PATCH] (Android) Build fix --- gfx/context/androidegl_ctx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gfx/context/androidegl_ctx.c b/gfx/context/androidegl_ctx.c index ddb4801743..a0ab8053f4 100644 --- a/gfx/context/androidegl_ctx.c +++ b/gfx/context/androidegl_ctx.c @@ -124,9 +124,9 @@ static bool gfx_ctx_init(void) goto error; } - int var; + int var = eglGetConfigAttrib(g_egl_dpy, config, EGL_NATIVE_VISUAL_ID, &format); - if (!var = eglGetConfigAttrib(g_egl_dpy, config, EGL_NATIVE_VISUAL_ID, &format)) + if (!var) { RARCH_ERR("eglGetConfigAttrib failed: %d.\n", var); goto error;