The following commit has been merged in the master-experimental branch:
commit 781519ad4dc6141de1f6356a0477bf27abe83f58
Author: Stephen Kitt <st...@sk2.org>
Date:   Mon Feb 20 08:37:39 2012 +0100

    Fix interpolation shaders (patch by Valfar).

diff --git a/debian/changelog b/debian/changelog
index d88b35f..5fe743d 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 mednafen (0.9.19-2) experimental; urgency=low
 
   * Build with zlib 1.2.6 and later (patch by Michał Ziąbkowski).
+  * Fix interpolation shaders (patch by "Valfar").
 
  -- Stephen Kitt <st...@sk2.org>  Mon, 20 Feb 2012 06:52:07 +0100
 
diff --git a/debian/patches/series b/debian/patches/series
index 4f3f041..449f529 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@ use-system-tremor.patch
 hardening-fixes.patch
 spelling-fixes.patch
 gzip-1.2.6-fix.patch
+shader-fix.patch
diff --git a/debian/patches/shader-fix.patch b/debian/patches/shader-fix.patch
new file mode 100644
index 0000000..b4e91db
--- /dev/null
+++ b/debian/patches/shader-fix.patch
@@ -0,0 +1,14 @@
+Description: Pass correct argument to texture2D() in interpolation shader
+Origin: http://forum.fobby.net/index.php?t=rview&goto=2420#msg_2420
+
+--- mednafen.orig/src/drivers/shader.cpp
++++ mednafen/src/drivers/shader.cpp
+@@ -70,7 +70,7 @@
+  switch(ipolate_axis & 3)
+  {
+   case 0:
+-      ret += std::string("gl_FragColor = texture2D(Tex0, gl_TexCoord[0]);\n");
++      ret += std::string("gl_FragColor = texture2D(Tex0, 
vec2(gl_TexCoord[0]));\n");
+       break;
+ 
+   case 1:

-- 
multi-platform emulator, including NES, GB/A, Lynx, PC Engine

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to