SDL_image: bump vendored libpng from 1.6.40 to 1.6.41 and zlib from 1.3 to 1.3.1. (2a634)

From 2a634643f22523d04b69f32a67834486641bc740 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Mon, 29 Jan 2024 20:56:50 +0300
Subject: [PATCH] bump vendored libpng from 1.6.40 to 1.6.41 and zlib from 1.3
 to 1.3.1.

---
 .gitmodules     | 4 ++--
 CMakeLists.txt  | 2 ++
 external/libpng | 2 +-
 external/zlib   | 2 +-
 4 files changed, 6 insertions(+), 4 deletions(-)

diff --git a/.gitmodules b/.gitmodules
index a9ca049f..adc13bc1 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -5,7 +5,7 @@
 [submodule "external/libpng"]
 	path = external/libpng
 	url = https://github.com/libsdl-org/libpng.git
-	branch = v1.6.40-SDL
+	branch = v1.6.41-SDL
 [submodule "external/libwebp"]
 	path = external/libwebp
 	url = https://github.com/libsdl-org/libwebp.git
@@ -17,7 +17,7 @@
 [submodule "external/zlib"]
 	path = external/zlib
 	url = https://github.com/libsdl-org/zlib.git
-	branch = v1.3-SDL
+	branch = v1.3.1-SDL
 [submodule "external/libjxl"]
 	path = external/libjxl
 	url = https://github.com/libsdl-org/libjxl.git
diff --git a/CMakeLists.txt b/CMakeLists.txt
index eff449c1..5d7fa8c5 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -346,6 +346,8 @@ if(SDL2IMAGE_ZLIB)
         message(STATUS "${PROJECT_NAME}: Using vendored zlib")
         sdl_check_project_in_subfolder(external/zlib zlib SDL2IMAGE_VENDORED)
         add_subdirectory(external/zlib EXCLUDE_FROM_ALL)
+        # disable build of zlib example programs:
+        set(ZLIB_BUILD_EXAMPLES OFF CACHE BOOL "zlib examples" FORCE)
         # PNG_BUILD_ZLIB variable is used by vendored libpng
         set(PNG_BUILD_ZLIB ON CACHE BOOL "libpng option to tell it should use 'our' vendored ZLIB library" FORCE)
         # ZLIB_INCLUDE_DIR variable is used by vendored libpng
diff --git a/external/libpng b/external/libpng
index c22c2de8..b3096fb3 160000
--- a/external/libpng
+++ b/external/libpng
@@ -1 +1 @@
-Subproject commit c22c2de876e0c2de7a62c6454bd6ee09ddab5571
+Subproject commit b3096fb31f15538eeca4f2456f6c0e2b902cc07b
diff --git a/external/zlib b/external/zlib
index 8d8abbc2..402313b7 160000
--- a/external/zlib
+++ b/external/zlib
@@ -1 +1 @@
-Subproject commit 8d8abbc276d1151ca9df98ae6ee4638a7fe6df25
+Subproject commit 402313b70a3bb8505cd5f2e0662e8605371f1e1a