testgles2_sdf: Call correct function to get shader info log

This commit is contained in:
capehill 2023-03-26 22:13:09 +03:00 committed by Sylvain Becker
parent d5fac067cd
commit b8c88cc584

View File

@ -145,7 +145,7 @@ static void process_shader(GLenum *shader, const char *source, GLenum shader_typ
/* 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);
quit(-1);