From 9c4085ee1ee42f85fc31aaf0bc2e01e3e16024d8 Mon Sep 17 00:00:00 2001 From: Flyinghead Date: Thu, 14 Feb 2019 13:52:48 +0100 Subject: [PATCH] Android: fix full-screen shadow on some platforms --- .../src/main/java/com/reicast/emulator/emu/GLCFactory.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory.java b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory.java index cf8b63717..442985a17 100644 --- a/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory.java +++ b/shell/android-studio/reicast/src/main/java/com/reicast/emulator/emu/GLCFactory.java @@ -121,7 +121,7 @@ public class GLCFactory { int s = findConfigAttrib(egl,display,config,EGL10.EGL_STENCIL_SIZE,0); // We need at least mDepthSize and mStencilSize bits - if (d>=mDepthSize || s>=mStencilSize) + if (d >= mDepthSize && s >= mStencilSize) { // We want an *exact* match for red/green/blue/alpha int r = findConfigAttrib(egl,display,config,EGL10.EGL_RED_SIZE, 0);