summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-05-19 00:01:50 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-05-19 00:01:50 +1000
commitb1b2d988e8f2fa3b0f63ff3aeb02849497433647 (patch)
tree8c0a5dccbc791b47b1da320ee4d754fb8577bd69 /examples
parentd79a8aa200bd64b14b85d2ec0c207601ba5c7922 (diff)
cube compiles again
Diffstat (limited to 'examples')
-rw-r--r--examples/cube/ex_cube.c2
-rw-r--r--examples/triangle/ex_triangle.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/cube/ex_cube.c b/examples/cube/ex_cube.c
index 264bf71..346dd10 100644
--- a/examples/cube/ex_cube.c
+++ b/examples/cube/ex_cube.c
@@ -48,7 +48,7 @@ int main() {
vec3 camera_front = vec3_normalise(vec3_negate(camera_pos));
camera cam = camera_create(camera_pos, camera_front, VEC3_Y, deg_to_rad(45.0));
- vertex_description vertex_input;
+ vertex_description vertex_input = {.use_full_vertex_size = true};
vertex_input.debug_label = "Standard Static 3D Vertex Format";
vertex_desc_add(&vertex_input, "inPosition", ATTR_F32x3);
vertex_desc_add(&vertex_input, "inNormal", ATTR_F32x3);
diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c
index 886637a..69c29ac 100644
--- a/examples/triangle/ex_triangle.c
+++ b/examples/triangle/ex_triangle.c
@@ -27,7 +27,7 @@ int main() {
core_bringup();
arena scratch = arena_create(malloc(1024 * 1024), 1024 * 1024);
- vertex_description vertex_input = {0};
+ vertex_description vertex_input = {.use_full_vertex_size=false};
vertex_input.debug_label = "Hello";
vertex_desc_add(&vertex_input, "inPos", ATTR_F32x2);
vertex_desc_add(&vertex_input, "inColor", ATTR_F32x3);