From aac83a54229f999e8c4597e7bd9e81b3633bedcb Mon Sep 17 00:00:00 2001 From: John Tsiombikas Date: Tue, 20 Oct 2015 04:35:28 +0000 Subject: [PATCH] minor C89 conformity fixes in fg_window_egl.c git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1774 7f0cb862-5218-0410-a997-914c9d46530a --- src/egl/fg_window_egl.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/egl/fg_window_egl.c b/src/egl/fg_window_egl.c index e00ab9f..110a38b 100644 --- a/src/egl/fg_window_egl.c +++ b/src/egl/fg_window_egl.c @@ -27,6 +27,7 @@ #include "fg_internal.h" int fghChooseConfig(EGLConfig* config) { + EGLint num_config; EGLint attributes[32]; int where = 0; ATTRIB_VAL(EGL_SURFACE_TYPE, EGL_WINDOW_BIT); @@ -68,7 +69,6 @@ int fghChooseConfig(EGLConfig* config) { ATTRIB_VAL(EGL_SAMPLES, (fgState.DisplayMode & GLUT_MULTISAMPLE) ? fgState.SampleNumber : 0); ATTRIB(EGL_NONE); - EGLint num_config; if (!eglChooseConfig(fgDisplay.pDisplay.egl.Display, attributes, config, 1, &num_config)) { fgWarning("eglChooseConfig: error %x\n", eglGetError()); @@ -94,7 +94,7 @@ EGLContext fghCreateNewContextEGL( SFG_Window* window ) { ATTRIB_VAL(EGL_CONTEXT_CLIENT_VERSION, fgState.MajorVersion); #ifdef EGL_CONTEXT_MINOR_VERSION if (fgDisplay.pDisplay.egl.MinorVersion >= 5) { - // EGL_CONTEXT_CLIENT_VERSION == EGL_CONTEXT_MAJOR_VERSION + /* EGL_CONTEXT_CLIENT_VERSION == EGL_CONTEXT_MAJOR_VERSION */ ATTRIB_VAL(EGL_CONTEXT_MINOR_VERSION, fgState.MinorVersion); } #endif -- 1.7.10.4