-
Notifications
You must be signed in to change notification settings - Fork 172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
【igl nanovg part-1】shell | android | opengles add stencil buffer #215
base: main
Are you sure you want to change the base?
【igl nanovg part-1】shell | android | opengles add stencil buffer #215
Conversation
@@ -162,13 +162,14 @@ public ConfigChooser(SampleLib.BackendVersion version) { | |||
public EGLConfig chooseConfig(EGL10 egl, EGLDisplay display) { | |||
final int EGL_OPENGL_ES2_BIT = 4; | |||
|
|||
// Set ourselves a strict configuration: RGBA8888, 16-bit depth buffer, no stencil. | |||
// Set ourselves a strict configuration: RGBA8888, 16-bit depth buffer, 8-bit stencil buffer. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please add a parameter to control this. By default, the stencil buffer should be disabled.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Stencil buffer should be disabled by default. Please introduce an optional parameter to enable the stencil buffer.
done |
I will use 【 igl::TextureFormat depthTextureFormat】 to replace 【boolean enableStencilBuffer】 |
This is a prerequisite pull request for igl nanovg(#213).