Calculate draw arrays count correctly

This commit is contained in:
2026-03-10 17:00:10 -03:00
parent bb1f9a6fc4
commit 608ae55db4
+1 -1
View File
@@ -285,7 +285,7 @@ function flush_batch() {
gl.uniform2f(camera_offset_loc, camera.offset_x, camera.offset_y);
gl.bindTexture(gl.TEXTURE_2D, current_texture);
gl.drawArrays(gl.TRIANGLES, 0, vert_index / 4);
gl.drawArrays(gl.TRIANGLES, 0, vert_index / 8);
vert_index = 0;
}