[mupen64plus-video-rice] 69/191: Fix z coordinate in 3d line rendering

Sven Eckelmann ecsv-guest at moszumanska.debian.org
Thu Nov 26 06:17:18 UTC 2015


This is an automated email from the git hooks/post-receive script.

ecsv-guest pushed a commit to branch armhf_test
in repository mupen64plus-video-rice.

commit 10a7cd7e4ec4729261eb8cbebb06a873c7d8bd51
Author: Sven Eckelmann <sven at narfation.org>
Date:   Sun Jul 24 11:01:38 2011 +0200

    Fix z coordinate in 3d line rendering
---
 debian/changelog                        |  1 +
 debian/patches/series                   |  1 +
 debian/patches/z_coordinate_lines.patch | 20 ++++++++++++++++++++
 3 files changed, 22 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 3589914..6ef0a31 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -16,6 +16,7 @@ mupen64plus-video-rice (1.99.4-3) UNRELEASED; urgency=low
     - Add infinit_loop.patch, Fix double infinit loop in GetValidTmemInfoIndex
     - Add wom_corruption.patch, Remove write-only member variables m_bClampS and
       m_bClampT
+    - Add z_coordinate_lines.patch, Fix z coordinate in 3d line rendering
   * Depend on pkg-config in debian/control for new Makefile
 
  -- Sven Eckelmann <sven at narfation.org>  Sat, 23 Jul 2011 16:42:59 +0200
diff --git a/debian/patches/series b/debian/patches/series
index e042794..a46d49a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -6,3 +6,4 @@ undefined_functions.patch
 portable_movsxl.patch
 infinit_loop.patch
 wom_corruption.patch
+z_coordinate_lines.patch
diff --git a/debian/patches/z_coordinate_lines.patch b/debian/patches/z_coordinate_lines.patch
new file mode 100644
index 0000000..0715564
--- /dev/null
+++ b/debian/patches/z_coordinate_lines.patch
@@ -0,0 +1,20 @@
+Description: Fix z coordinate in 3d line rendering
+Origin: upstream, https://bitbucket.org/richard42/mupen64plus-video-rice/changeset/ceb723921445
+Author: Sven Eckelmann <sven at narfation.org>
+
+---
+diff --git a/src/OGLRender.cpp b/src/OGLRender.cpp
+index 8b883bf7cc73de70c2fe343ae5f90e5c38115ad4..1cc7de5eceb581ad820406c6ac7517e02fad36b4 100644
+--- a/src/OGLRender.cpp
++++ b/src/OGLRender.cpp
+@@ -577,8 +577,8 @@ bool OGLRender::RenderLine3D()
+     glBegin(GL_TRIANGLE_FAN);
+ 
+     glColor4f(m_line3DVtx[1].r, m_line3DVtx[1].g, m_line3DVtx[1].b, m_line3DVtx[1].a);
+-    glVertex3f(m_line3DVector[3].x, m_line3DVector[3].y, -m_line3DVtx[3].z);
+-    glVertex3f(m_line3DVector[2].x, m_line3DVector[2].y, -m_line3DVtx[2].z);
++    glVertex3f(m_line3DVector[3].x, m_line3DVector[3].y, -m_line3DVtx[1].z);
++    glVertex3f(m_line3DVector[2].x, m_line3DVector[2].y, -m_line3DVtx[0].z);
+     
+     glColor4ub(m_line3DVtx[0].r, m_line3DVtx[0].g, m_line3DVtx[0].b, m_line3DVtx[0].a);
+     glVertex3f(m_line3DVector[1].x, m_line3DVector[1].y, -m_line3DVtx[1].z);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/mupen64plus-video-rice.git



More information about the Pkg-games-commits mailing list