summaryrefslogtreecommitdiff
path: root/examples/triangle/ex_triangle.c
diff options
context:
space:
mode:
authorOmniscient <omniscient.oce@gmail.com>2024-06-07 12:16:13 +1000
committerOmniscient <omniscient.oce@gmail.com>2024-06-07 12:16:13 +1000
commitfc960d1f096332b30e6fa7694cf20849478d2b4d (patch)
tree61890faa23d995461508b1bb016e07ed8d710970 /examples/triangle/ex_triangle.c
parent5751ffae2eb8f786edb2dcd9e7f635fd1d0c1331 (diff)
triangle verts werent const so make static instead
Diffstat (limited to 'examples/triangle/ex_triangle.c')
-rw-r--r--examples/triangle/ex_triangle.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/triangle/ex_triangle.c b/examples/triangle/ex_triangle.c
index d57e224..a19cbb3 100644
--- a/examples/triangle/ex_triangle.c
+++ b/examples/triangle/ex_triangle.c
@@ -15,7 +15,7 @@
extern core g_core;
-const custom_vertex vertices[] = {
+static custom_vertex vertices[] = {
(custom_vertex){ .pos = vec2(-0.5, -0.5), .color = vec3(1.0, 1.0, 1.0) },
(custom_vertex){ .pos = vec2(0.5, -0.5), .color = vec3(1.0, 0.0, 0.0) },
(custom_vertex){ .pos = vec2(-0.5, 0.5), .color = vec3(0.0, 0.0, 1.0) },