Skip to content
This repository was archived by the owner on Jul 10, 2023. It is now read-only.

Android: fix full-screen shadow on some platforms #1495

Merged
merged 2 commits into from
Feb 26, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ protected void onCreate(Bundle icicle) {

// 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected void onCreate(Bundle icicle) {

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ public EGLConfig chooseConfig(EGL10 egl,EGLDisplay display,EGLConfig[] configs)
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);
Expand Down