diff options
Diffstat (limited to 'src/gl.c')
| -rw-r--r-- | src/gl.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -63,7 +63,7 @@ Shader compile_shader(const char* source, const ShaderType shader_type) { } Shader compile_shader_f(const char* file_path, const ShaderType shader_type) { - u32 shaderID = 0; + Shader s; char* source = NULL; FILE* file = NULL; @@ -92,11 +92,11 @@ Shader compile_shader_f(const char* file_path, const ShaderType shader_type) { // Compile shader INFO("Compiling shader \"" TERM_COLOR_YELLOW "%s" TERM_COLOR_RESET"\".", file_path); - compile_shader(source, shader_type); + s = compile_shader(source, shader_type); free(source); - return (Shader){.program = shaderID, .type = shader_type}; + return s; } |
