PGL: fix depth reading for off-screen buffers

This commit is contained in:
Jakub Valtar
2015-08-03 19:17:13 -04:00
parent e15c7ebce1
commit 0975b3c753
+1 -1
View File
@@ -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;