summaryrefslogtreecommitdiff
path: root/shaders/main.cc
diff options
context:
space:
mode:
authorHunter Kvalevog <hunter@kvog.sh>2025-11-22 16:37:55 +0000
committerHunter Kvalevog <hunter@kvog.sh>2025-11-22 16:37:55 +0000
commita18ad3a6436eb298bea80223aa3be57d63c948ab (patch)
tree7ebd712d0cf32f713eb14d5d592c411df4c08b8d /shaders/main.cc
parent2890cf45c1ad62bf8496f15dfb4796f9c71c02eb (diff)
shaders: Fix Linux build
Diffstat (limited to 'shaders/main.cc')
-rw-r--r--shaders/main.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/shaders/main.cc b/shaders/main.cc
index ffc6434..443f08e 100644
--- a/shaders/main.cc
+++ b/shaders/main.cc
@@ -17,6 +17,7 @@
#include "imgui_impl_opengl3.cpp"
#include "imgui_impl_sdl3.cpp"
+#include <cctype>
#include <cmath>
#include <cstddef>
@@ -266,7 +267,7 @@ static float TokenFloat(const char* tok, int len)
static void ParseShaderMetadata(ShaderMetadata* sm, const char* src)
{
- memset(sm, 0, sizeof(*sm));
+ *sm = ShaderMetadata();
while ((src = strchr(src, '@'))) {
// @model <quad|cube>