mirror of
https://github.com/shadps4-emu/ext-SDL.git
synced 2025-02-03 01:12:10 +00:00
testgles2_sdf: Call correct function to get shader info log
This commit is contained in:
parent
d5fac067cd
commit
b8c88cc584
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user