summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gl.c')
-rw-r--r--src/gl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gl.c b/src/gl.c
index 9dce5e5..8283a3e 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -244,6 +244,7 @@ RenderObject RenderObject_new(
o.buffer = buffers;
o.buffer_len = num_buffers;
o.mvp = gl->GetUniformLocation(o.shader.program, "MVP");
+ o.model_position = gl->GetUniformLocation(o.shader.program, "modelPosition");
// It is very much a non-issue if we don't find the model view projection in
// the shader. In fact, it is removed from a shader program if it is not used.