aboutsummaryrefslogtreecommitdiff
path: root/src/util
diff options
context:
space:
mode:
author3gg <3gg@shellblade.net>2025-11-02 15:57:16 -0800
committer3gg <3gg@shellblade.net>2025-11-02 15:57:16 -0800
commitd7220ee51c59cd3e51927f2f5e0388c8573f1792 (patch)
treed949b88768f09e06f9456a8028ae89ef53e8a091 /src/util
parentd3bfccdc4f90aabfa3493b0db0e6fe357a527485 (diff)
Fix view/accessor offset and invariants; fix loading of Flight Helmet
Diffstat (limited to 'src/util')
-rw-r--r--src/util/geometry.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/util/geometry.c b/src/util/geometry.c
index afe0109..2ea0c82 100644
--- a/src/util/geometry.c
+++ b/src/util/geometry.c
@@ -17,12 +17,13 @@ static void make_quad_01_positions(vec2 positions[4]) {
17} 17}
18 18
19static GeometryDesc make_quad_desc(vec2 positions[4]) { 19static GeometryDesc make_quad_desc(vec2 positions[4]) {
20 GeometryDesc desc = (GeometryDesc){0}; 20 return (GeometryDesc){
21 desc.positions2d.data = positions; 21 .positions2d = (BufferView2d){.data = positions,
22 desc.positions2d.size_bytes = 4 * sizeof(vec2); 22 .size_bytes = 4 * sizeof(vec2),
23 desc.num_verts = 4; 23 .count = 4},
24 desc.type = TriangleStrip; 24 .num_verts = 4,
25 return desc; 25 .type = TriangleStrip
26 };
26} 27}
27 28
28Geometry* gfx_make_quad_11(GfxCore* gfxcore) { 29Geometry* gfx_make_quad_11(GfxCore* gfxcore) {