mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
PGL: fix depth reading for off-screen buffers
This commit is contained in:
@@ -2716,7 +2716,7 @@ public abstract class PGL {
|
||||
// to glReadPixels() should be done in readPixelsImpl().
|
||||
|
||||
public void readPixels(int x, int y, int width, int height, int format, int type, Buffer buffer){
|
||||
boolean multisampled = isMultisampled();
|
||||
boolean multisampled = isMultisampled() || pg.offscreenMultisample;
|
||||
boolean depthReadingEnabled = pg.getHint(PConstants.ENABLE_DEPTH_READING);
|
||||
boolean depthRequested = format == STENCIL_INDEX || format == DEPTH_COMPONENT || format == DEPTH_STENCIL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user