am f3bb27a7: Merge "opengles emulator: filter-out non-RGB configs"
* commit 'f3bb27a78fd7e70b2669b55d46448d0335c47f05': opengles emulator: filter-out non-RGB configs
This commit is contained in:
@@ -170,6 +170,15 @@ InitConfigStatus FBConfig::initConfigList(FrameBuffer *fb)
|
|||||||
if (!(surfaceType & EGL_PBUFFER_BIT)) continue;
|
if (!(surfaceType & EGL_PBUFFER_BIT)) continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//
|
||||||
|
// Filter out not RGB configs
|
||||||
|
//
|
||||||
|
EGLint redSize, greenSize, blueSize;
|
||||||
|
s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_RED_SIZE, &redSize);
|
||||||
|
s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_BLUE_SIZE, &blueSize);
|
||||||
|
s_egl.eglGetConfigAttrib(dpy, configs[i], EGL_GREEN_SIZE, &greenSize);
|
||||||
|
if (redSize==0 || greenSize==0 || blueSize==0) continue;
|
||||||
|
|
||||||
s_fbConfigs[j++] = new FBConfig(dpy, configs[i]);
|
s_fbConfigs[j++] = new FBConfig(dpy, configs[i]);
|
||||||
}
|
}
|
||||||
s_numConfigs = j;
|
s_numConfigs = j;
|
||||||
|
|||||||
Reference in New Issue
Block a user