Commit 6ed29f47c9fba01f8559b6b724cc73f8412a769f

capehill 2023-03-26T22:13:09

testgles2_sdf: Call correct function to get shader info log (cherry picked from commit b8c88cc58423b7e654b18fdaf1aab5a343114586)

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/test/testgles2_sdf.c b/test/testgles2_sdf.c
index 97bfd45..e2ef466 100644
--- a/test/testgles2_sdf.c
+++ b/test/testgles2_sdf.c
@@ -151,7 +151,7 @@ process_shader(GLuint *shader, const char * source, GLint shader_type)
 
     /* Dump debug info (source and log) if compilation failed. */
     if (status != GL_TRUE) {
-        ctx.glGetProgramInfoLog(*shader, sizeof(buffer), &length, &buffer[0]);
+        ctx.glGetShaderInfoLog(*shader, sizeof(buffer), &length, &buffer[0]);
         buffer[length] = '\0';
         SDL_Log("Shader compilation failed: %s", buffer);fflush(stderr);
         quit(-1);