am b49454ac: Merge "opengles emulator: limit X11 configs some more"
* commit 'b49454ac3958a3497e1a715cc3471805f14ab84a': opengles emulator: limit X11 configs some more
This commit is contained in:
@@ -91,6 +91,7 @@ EglConfig* pixelFormatToConfig(EGLNativeDisplayType dpy,int renderableType,EGLNa
|
||||
int pMaxWidth,pMaxHeight,pMaxPixels;
|
||||
int tmp;
|
||||
int configId,level,renderable;
|
||||
int doubleBuffer;
|
||||
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_TRANSPARENT_TYPE,&tmp));
|
||||
if(tmp == GLX_TRANSPARENT_INDEX) {
|
||||
@@ -106,6 +107,12 @@ EglConfig* pixelFormatToConfig(EGLNativeDisplayType dpy,int renderableType,EGLNa
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
// filter out single buffer configurations
|
||||
//
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_DOUBLEBUFFER,&doubleBuffer));
|
||||
if (!doubleBuffer) return NULL;
|
||||
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_BUFFER_SIZE,&bSize));
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_RED_SIZE,&red));
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_GREEN_SIZE,&green));
|
||||
@@ -123,13 +130,12 @@ EglConfig* pixelFormatToConfig(EGLNativeDisplayType dpy,int renderableType,EGLNa
|
||||
//supported surfaces types
|
||||
IS_SUCCESS(glXGetFBConfigAttrib(dpy,*frmt,GLX_DRAWABLE_TYPE,&tmp));
|
||||
supportedSurfaces = 0;
|
||||
if(tmp & GLX_WINDOW_BIT) {
|
||||
if(tmp & GLX_WINDOW_BIT && visualId != 0) {
|
||||
supportedSurfaces |= EGL_WINDOW_BIT;
|
||||
} else {
|
||||
visualId = 0;
|
||||
visualType = EGL_NONE;
|
||||
}
|
||||
if(tmp & GLX_PIXMAP_BIT) supportedSurfaces |= EGL_PIXMAP_BIT;
|
||||
if(tmp & GLX_PBUFFER_BIT) supportedSurfaces |= EGL_PBUFFER_BIT;
|
||||
|
||||
caveat = 0;
|
||||
|
||||
Reference in New Issue
Block a user