X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fegl%2Ffg_state_egl.c;h=c83ec30fb3e55c57ed44c3bfbba8066e8d145d39;hb=d9ec500965f477d0cb859dc09f0bc540f7ae0730;hp=2890d00b38ad43a86d29729fe5f2b2d91d0d2151;hpb=cb1e59cf5e6ac8034ae91abfd320874004a44c88;p=freeglut diff --git a/src/egl/fg_state_egl.c b/src/egl/fg_state_egl.c index 2890d00..c83ec30 100644 --- a/src/egl/fg_state_egl.c +++ b/src/egl/fg_state_egl.c @@ -33,7 +33,7 @@ static int fgPlatformGetConfig( int attribute ) { int returnValue = 0; - int result; /* Not checked */ + int result __fg_unused; /* Not checked */ if( fgStructure.CurrentWindow ) result = eglGetConfigAttrib( fgDisplay.pDisplay.egl.Display, @@ -88,6 +88,9 @@ int fghPlatformGlutGetEGL ( GLenum eWhat ) return 0; return fgPlatformGetConfig( EGL_NATIVE_VISUAL_ID ); + case GLUT_WINDOW_DOUBLEBUFFER: + return 1; /* EGL is always double-buffered */ + default: fgWarning( "glutGet(): missing enum handle %d", eWhat ); break;