summaryrefslogtreecommitdiff
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
parent2890cf45c1ad62bf8496f15dfb4796f9c71c02eb (diff)
shaders: Fix Linux build
-rw-r--r--common/c_cpp/CMakeLists.txt4
-rw-r--r--shaders/main.cc3
2 files changed, 4 insertions, 3 deletions
diff --git a/common/c_cpp/CMakeLists.txt b/common/c_cpp/CMakeLists.txt
index f87b1d5..5ab146e 100644
--- a/common/c_cpp/CMakeLists.txt
+++ b/common/c_cpp/CMakeLists.txt
@@ -96,7 +96,7 @@ if(DEMO_NEEDS_SDL3)
target_link_libraries(common INTERFACE SDL3::SDL3)
else()
find_package(PkgConfig REQUIRED)
- pkg_check_modules(SDL3 REQUIRED IMPORTED_TARGET SDL3)
- target_link_libraries(common INTERFACE PkgConfig::SDL3)
+ pkg_check_modules(sdl3 REQUIRED IMPORTED_TARGET sdl3)
+ target_link_libraries(common INTERFACE PkgConfig::sdl3)
endif()
endif() \ No newline at end of file
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>