summaryrefslogtreecommitdiff
path: root/games-emulation/snes9x/files
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-01-12 16:58:08 +0000
committerV3n3RiX <venerix@redcorelinux.org>2019-01-12 16:58:08 +0000
commitc8a77dfe4d3d307c1d5dd2650b7297447d8b609d (patch)
tree9ea78393bc3ecd6ab4de449383d4e97e5f3648ae /games-emulation/snes9x/files
parent2891d29af8907ce881662f4a02844926d7a293c7 (diff)
gentoo resync : 12.01.2019
Diffstat (limited to 'games-emulation/snes9x/files')
-rw-r--r--games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch b/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch
new file mode 100644
index 000000000000..7af1e9e2b902
--- /dev/null
+++ b/games-emulation/snes9x/files/snes9x-1.58-without-screenshot_build_fix.patch
@@ -0,0 +1,31 @@
+From 51909e0cb44ee8de346f3edfb2a6c4a8bb97ea1d Mon Sep 17 00:00:00 2001
+From: Brandon Wright <bearoso@gmail.com>
+Date: Fri, 4 Jan 2019 10:52:11 -0600
+Subject: [PATCH] Fix PNG usage without preprocessor check.
+
+---
+ shaders/shader_helpers.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/shaders/shader_helpers.cpp b/shaders/shader_helpers.cpp
+index b84e6291..a589d39b 100644
+--- a/shaders/shader_helpers.cpp
++++ b/shaders/shader_helpers.cpp
+@@ -93,6 +93,7 @@ bool loadPngImage(const char* name,
+ bool& outHasAlpha,
+ GLubyte** outData)
+ {
++#ifdef HAVE_LIBPNG
+ png_structp png_ptr;
+ png_infop info_ptr;
+ unsigned int sig_read = 0;
+@@ -211,6 +212,9 @@ bool loadPngImage(const char* name,
+
+ /* That's it */
+ return true;
++#else
++ return false;
++#endif
+ }
+
+ bool loadTGA(const char* filename, STGA& tgaFile)