OSDN Git Service

GLSurfaceView: Be less picky about EGLConfig alpha sizes
[android-x86/frameworks-base.git] / opengl / java / android / opengl / GLSurfaceView.java
index 0f0a7e9..d9bdf42 100644 (file)
@@ -969,7 +969,7 @@ public class GLSurfaceView extends SurfaceView implements SurfaceHolder.Callback
                     int a = findConfigAttrib(egl, display, config,
                             EGL10.EGL_ALPHA_SIZE, 0);
                     if ((r == mRedSize) && (g == mGreenSize)
-                            && (b == mBlueSize) && (a == mAlphaSize)) {
+                            && (b == mBlueSize) && (a >= mAlphaSize)) {
                         return config;
                     }
                 }