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 e84b33d..a512b46 100644
--- a/src/gl.c
+++ b/src/gl.c
@@ -248,6 +248,7 @@ RenderObject RenderObject_new(
o.shader = *shader;
o.texture = texture;
+ o.texture_len = 1;
o.buffer = buffers;
o.buffer_len = num_buffers;
o.mvp = gl->GetUniformLocation(o.shader.program, "MVP");