Skip to content

Commit

Permalink
Android SampleActivity add mEnableStencilBuffer.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinsentli committed Dec 23, 2024
1 parent 7cbe5ad commit 1231183
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ public class SampleActivity extends Activity implements View.OnClickListener {
private final int selectedTabColor = Color.BLUE;
private final int unSelectedTabColor = Color.GRAY;

protected boolean mEnableStencilBuffer = false;

@Override
protected void onCreate(Bundle icicle) {
super.onCreate(icicle);
Expand Down Expand Up @@ -69,7 +71,7 @@ protected void onCreate(Bundle icicle) {
} else if (mConfigs[i].version.flavor == SampleLib.BackendFlavor.OpenGL_ES) {
backendView =
new SampleView(
getApplication(), mConfigs[i].version, mConfigs[i].swapchainColorTextureFormat);
getApplication(), mConfigs[i].version, mConfigs[i].swapchainColorTextureFormat, mEnableStencilBuffer);
((SampleView) backendView).onPause();
}

Expand Down

0 comments on commit 1231183

Please sign in to comment.