mirror of
https://github.com/processing/processing4.git
synced 2026-03-04 11:44:40 +01:00
constrain depth and stencil bits to requested values, use capabilities
to obtain current values
This commit is contained in:
@@ -527,8 +527,8 @@ public abstract class PGL {
|
||||
boolean multisample = 1 < numSamples;
|
||||
|
||||
boolean packed = ext.indexOf("packed_depth_stencil") != -1;
|
||||
int depthBits = getDepthBits();
|
||||
int stencilBits = getStencilBits();
|
||||
int depthBits = PApplet.min(REQUESTED_DEPTH_BITS, getDepthBits());
|
||||
int stencilBits = PApplet.min(REQUESTED_STENCIL_BITS, getStencilBits());
|
||||
|
||||
genTextures(2, glColorTex);
|
||||
for (int i = 0; i < 2; i++) {
|
||||
|
||||
Reference in New Issue
Block a user