From 420efd2c6ed8c35a811b148327bf49e82400c715 Mon Sep 17 00:00:00 2001 From: Patoke Date: Mon, 2 Mar 2026 01:43:10 -0300 Subject: [PATCH] fix: compiling would fail in the game project because of __snprintf --- Windows_Libs/Dev/Render/RendererTexture.cpp | 2 +- Windows_Libs/Dev/Render/libpng/pnglibconf.h | 2 +- Windows_Libs/Dev/Render/zlib/zconf.h | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Windows_Libs/Dev/Render/RendererTexture.cpp b/Windows_Libs/Dev/Render/RendererTexture.cpp index b74dcaf..40c5925 100644 --- a/Windows_Libs/Dev/Render/RendererTexture.cpp +++ b/Windows_Libs/Dev/Render/RendererTexture.cpp @@ -74,7 +74,7 @@ void Renderer::TextureSetParam(int param, int value) } break; case GL_TEXTURE_WRAP_T: - case 5: + case 5: // GL_TEXTURE_WRAP_R, but this renderer only supports 2D textures, so treat it as GL_TEXTURE_WRAP_T texture.samplerParams &= ~2u; if (value == 0) { diff --git a/Windows_Libs/Dev/Render/libpng/pnglibconf.h b/Windows_Libs/Dev/Render/libpng/pnglibconf.h index 1e21b37..e12c895 100644 --- a/Windows_Libs/Dev/Render/libpng/pnglibconf.h +++ b/Windows_Libs/Dev/Render/libpng/pnglibconf.h @@ -25,7 +25,7 @@ #define PNG_BUILD_GRAYSCALE_PALETTE_SUPPORTED #define PNG_CHECK_FOR_INVALID_INDEX_SUPPORTED #define PNG_COLORSPACE_SUPPORTED -#define PNG_CONSOLE_IO_SUPPORTED +//#define PNG_CONSOLE_IO_SUPPORTED #define PNG_CONVERT_tIME_SUPPORTED /*#undef PNG_DISABLE_ADLER32_CHECK_SUPPORTED*/ #define PNG_EASY_ACCESS_SUPPORTED diff --git a/Windows_Libs/Dev/Render/zlib/zconf.h b/Windows_Libs/Dev/Render/zlib/zconf.h index 828ca61..40c02e7 100644 --- a/Windows_Libs/Dev/Render/zlib/zconf.h +++ b/Windows_Libs/Dev/Render/zlib/zconf.h @@ -8,6 +8,8 @@ #ifndef ZCONF_H #define ZCONF_H +#define NO_snprintf + /* * If you *really* need a unique prefix for all types and library functions, * compile with -DZ_PREFIX. The "standard" zlib should be compiled without it.