From 1418f9ff4d1fe32da1b3c2227b8d1742a0ab60f4 Mon Sep 17 00:00:00 2001 From: jshrake Date: Sat, 10 Sep 2016 21:25:21 -0700 Subject: [PATCH] Call glGetProgramiv to retrieve program log length Calling glGetShaderiv to retrieve the program log length produces a GL_INVALID_OPERATION error and length < 0, preventing the return of the actual info log. This fix replaces the call to glGetShaderiv with glGetProgramiv. Closes #4659 --- core/src/processing/opengl/PJOGL.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/processing/opengl/PJOGL.java b/core/src/processing/opengl/PJOGL.java index 9a429f800..9c579032e 100644 --- a/core/src/processing/opengl/PJOGL.java +++ b/core/src/processing/opengl/PJOGL.java @@ -1701,7 +1701,7 @@ public class PJOGL extends PGL { @Override public String getProgramInfoLog(int program) { int[] val = { 0 }; - gl2.glGetShaderiv(program, GL2ES2.GL_INFO_LOG_LENGTH, val, 0); + gl2.glGetProgramiv(program, GL2ES2.GL_INFO_LOG_LENGTH, val, 0); int length = val[0]; if (0 < length) {