summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gl.c b/src/gl.c
index 819b534..9c9e6da 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -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;
}