Merge pull request #1495 from reicast/baka/full-screen-shadow
Android: fix full-screen shadow on some platforms
This commit is contained in:
commit
2b3a052ac3
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue