summaryrefslogtreecommitdiff
path: root/src/gl.c
diff options
context:
space:
mode:
authoronelin <oscar@nelin.dk>2025-11-29 22:04:52 +0000
committeronelin <oscar@nelin.dk>2025-12-18 21:14:16 +0000
commit07116cd28845c3e589ab7e99f32d0ab96dd5cf4d (patch)
tree0382594d2d58376daa527aaa131d81d8273834a5 /src/gl.c
parentc2335eab1db200481c3e81664f27f9244579397c (diff)
TMP Rework rendering
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");