mirror of
https://github.com/processing/processing4.git
synced 2026-02-03 13:49:18 +01:00
some comments explaining the use of direct buffers on android
This commit is contained in:
@@ -58,6 +58,11 @@ public class PGL {
|
||||
// Parameters
|
||||
|
||||
public static boolean FORCE_SCREEN_FBO = false;
|
||||
// The use of indirect buffers creates problems with glBufferSubData because
|
||||
// the buffer position is ignored:
|
||||
// http://stackoverflow.com/questions/3380489/glbuffersubdata-with-an-offset-into-buffer-without-causing-garbage
|
||||
// http://code.google.com/p/android/issues/detail?id=12245
|
||||
// This doesn't happen with direct buffers.
|
||||
public static final boolean USE_DIRECT_BUFFERS = true;
|
||||
public static final int MIN_DIRECT_BUFFER_SIZE = 1;
|
||||
public static final boolean SAVE_SURFACE_TO_PIXELS = false;
|
||||
|
||||
Reference in New Issue
Block a user