We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5ba6a9 commit d96aa3aCopy full SHA for d96aa3a
1 file changed
core/src/processing/opengl/PJOGL.java
@@ -1973,6 +1973,11 @@ public void drawBuffer(int buf) {
1973
gl2x.glDrawBuffer(buf);
1974
} else if (gl3 != null) {
1975
gl3.glDrawBuffer(buf);
1976
+ } else if (gl3es3 != null) {
1977
+ IntBuffer intBuffer = IntBuffer.allocate(1);
1978
+ intBuffer.put(buf);
1979
+ intBuffer.rewind();
1980
+ gl3es3.glDrawBuffers(1, intBuffer);
1981
} else {
1982
throw new RuntimeException(String.format(MISSING_GLFUNC_ERROR, "glDrawBuffer()"));
1983
}
0 commit comments