From a18ad3a6436eb298bea80223aa3be57d63c948ab Mon Sep 17 00:00:00 2001 From: Hunter Kvalevog Date: Sat, 22 Nov 2025 16:37:55 +0000 Subject: shaders: Fix Linux build --- common/c_cpp/CMakeLists.txt | 4 ++-- shaders/main.cc | 3 ++- 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 #include #include @@ -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 -- cgit v1.2.3