summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gfx/src/core/shader.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gfx/src/core/shader.c b/gfx/src/core/shader.c
index af2f89f..dded084 100644
--- a/gfx/src/core/shader.c
+++ b/gfx/src/core/shader.c
@@ -51,7 +51,7 @@ static GLuint create_shader(const ShaderDesc* desc) {
51 51
52 const char* source_bits[] = {header, lstring_cstr(&defines), desc->code}; 52 const char* source_bits[] = {header, lstring_cstr(&defines), desc->code};
53 const GLint source_lengths[] = { 53 const GLint source_lengths[] = {
54 strlen(header), lstring_length(defines), strlen(desc->code)}; 54 strlen(header), lstring_length(&defines), strlen(desc->code)};
55 55
56 glShaderSource(shader, 3, source_bits, source_lengths); 56 glShaderSource(shader, 3, source_bits, source_lengths);
57 glCompileShader(shader); 57 glCompileShader(shader);
@@ -83,7 +83,7 @@ bool gfx_compile_shader(Shader* shader, const ShaderDesc* desc) {
83 83
84void gfx_del_shader(Shader* shader) { 84void gfx_del_shader(Shader* shader) {
85 assert(shader); 85 assert(shader);
86 86
87 if (shader->id) { 87 if (shader->id) {
88 glDeleteShader(shader->id); 88 glDeleteShader(shader->id);
89 shader->id = 0; 89 shader->id = 0;