From 49df0cf2fb8f84ff03fcfc91f4e2b4c4e5774854 Mon Sep 17 00:00:00 2001 From: Sylvain Beucler Date: Sun, 15 Apr 2012 18:44:17 +0000 Subject: [PATCH] Fix eglInitialize check git-svn-id: svn+ssh://svn.code.sf.net/p/freeglut/code/trunk/freeglut/freeglut@1238 7f0cb862-5218-0410-a997-914c9d46530a --- src/egl/fg_init_egl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/fg_init_egl.c b/src/egl/fg_init_egl.c index 0cd53fe..d5bc927 100644 --- a/src/egl/fg_init_egl.c +++ b/src/egl/fg_init_egl.c @@ -39,7 +39,7 @@ void fghPlatformInitializeEGL() FREEGLUT_INTERNAL_ERROR_EXIT(fgDisplay.pDisplay.egl.Display != EGL_NO_DISPLAY, "No display available", "fgPlatformInitialize"); - if (!eglInitialize(fgDisplay.pDisplay.egl.Display, NULL, NULL)) + if (eglInitialize(fgDisplay.pDisplay.egl.Display, NULL, NULL) != EGL_SUCCESS) fgError("eglInitialize: error %x\n", eglGetError()); # ifdef GL_VERSION_1_1 /* or later */ -- 1.7.10.4