Pārlūkot izejas kodu

testgles2_sdf: Call correct function to get shader info log

capehill 2 gadi atpakaļ
vecāks
revīzija
b8c88cc584
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      test/testgles2_sdf.c

+ 1 - 1
test/testgles2_sdf.c

@@ -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);