X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_init_egl.c;h=361c73ce0b7bcd7aa4f70cf46b2a0e5530f441ee;hb=6636a18df676a102cee0bcf31ce81b67dc7b7ac2;hp=d5bc927d6d97e6482bd6b51f66537663a43d5b63;hpb=49df0cf2fb8f84ff03fcfc91f4e2b4c4e5774854;p=freeglut diff --git a/src/egl/fg_init_egl.c b/src/egl/fg_init_egl.c index d5bc927..361c73c 100644 --- a/src/egl/fg_init_egl.c +++ b/src/egl/fg_init_egl.c @@ -1,5 +1,5 @@ /* - * freeglut_init_egl.c + * fg_init_egl.c * * Various freeglut initialization functions. * @@ -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) != EGL_SUCCESS) + if (eglInitialize(fgDisplay.pDisplay.egl.Display, NULL, NULL) != EGL_TRUE) fgError("eglInitialize: error %x\n", eglGetError()); # ifdef GL_VERSION_1_1 /* or later */ @@ -48,10 +48,10 @@ void fghPlatformInitializeEGL() eglBindAPI(EGL_OPENGL_ES_API); # endif - // fgDisplay.ScreenWidth = ...; - // fgDisplay.ScreenHeight = ...; - // fgDisplay.ScreenWidthMM = ...; - // fgDisplay.ScreenHeightMM = ...; + /* fgDisplay.ScreenWidth = ...; */ + /* fgDisplay.ScreenHeight = ...; */ + /* fgDisplay.ScreenWidthMM = ...; */ + /* fgDisplay.ScreenHeightMM = ...; */ } void fghPlatformCloseDisplayEGL()