Skip to content

Commit fada294

Browse files
committed
ARM Mali: Implement glReadBuffer for gl3es3
Fixes: java.lang.RuntimeException: GL function glReadBuffer() is not available on this hardware (or driver) Read <a href="http://wiki.processing.org/w/OpenGL_Issues" target="_blank" rel="nofollow">http://wiki.processing.org/w/OpenGL_Issues</a> for help. at processing.opengl.PJOGL.readBuffer(PJOGL.java:1954) at processing.opengl.PJOGL.initFBOLayerES(PJOGL.java:310) at processing.opengl.PJOGL.initFBOLayer(PJOGL.java:301) at processing.opengl.PGL.createFBOLayer(PGL.java:988) at processing.opengl.PGL.beginRender(PGL.java:727) at processing.opengl.PGraphicsOpenGL.beginOnscreenDraw(PGraphicsOpenGL.java:6576) at processing.opengl.PGraphicsOpenGL.beginDraw(PGraphicsOpenGL.java:1459) at processing.core.PApplet.handleDraw(PApplet.java:2388) at processing.opengl.PSurfaceJOGL$DrawListener.display(PSurfaceJOGL.java:866) at jogamp.opengl.GLDrawableHelper.displayImpl(GLDrawableHelper.java:692) at jogamp.opengl.GLDrawableHelper.display(GLDrawableHelper.java:674) at jogamp.opengl.GLAutoDrawableBase$2.run(GLAutoDrawableBase.java:443) at jogamp.opengl.GLDrawableHelper.invokeGLImpl(GLDrawableHelper.java:1293) at jogamp.opengl.GLDrawableHelper.invokeGL(GLDrawableHelper.java:1147) at com.jogamp.newt.opengl.GLWindow.display(GLWindow.java:759) at com.jogamp.opengl.util.AWTAnimatorImpl.display(AWTAnimatorImpl.java:81) at com.jogamp.opengl.util.AnimatorBase.display(AnimatorBase.java:452) at com.jogamp.opengl.util.FPSAnimator$MainTask.run(FPSAnimator.java:178) at java.util.TimerThread.mainLoop(Timer.java:555) at java.util.TimerThread.run(Timer.java:505)
1 parent bf4e7a3 commit fada294

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

core/src/processing/opengl/PJOGL.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1950,6 +1950,8 @@ public void readBuffer(int buf) {
19501950
gl2x.glReadBuffer(buf);
19511951
} else if (gl3 != null) {
19521952
gl3.glReadBuffer(buf);
1953+
} else if (gl3es3 != null) {
1954+
gl3es3.glReadBuffer(buf);
19531955
} else {
19541956
throw new RuntimeException(String.format(MISSING_GLFUNC_ERROR, "glReadBuffer()"));
19551957
}

0 commit comments

Comments
 (0)