Merge pull request #1495 from reicast/baka/full-screen-shadow

Android: fix full-screen shadow on some platforms
This commit is contained in:
baka0815 2019-02-26 13:04:44 +01:00 committed by GitHub
commit 2b3a052ac3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ public class GL2JNIActivity extends Activity {
// Create the actual GLES view
mView = new GL2JNIView(GL2JNIActivity.this, fileName, false,
prefs.getInt(Config.pref_renderdepth, 24), 0, false);
prefs.getInt(Config.pref_renderdepth, 24), 8, false);
setContentView(mView);
//setup mic

View File

@ -64,7 +64,7 @@ public class EditVJoyActivity extends Activity {
// Create the actual GLES view
mView = new GL2JNIView(EditVJoyActivity.this, fileName, false,
prefs.getInt(Config.pref_renderdepth, 24), 0, true);
prefs.getInt(Config.pref_renderdepth, 24), 8, true);
mView.setFpsDisplay(null);
setContentView(mView);

View File

@ -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);