Bug#575231: Supertuxkart under/overflows gl matrix stack because of incorrect matrix mode handling

Pauli Nieminen suokkos at gmail.com
Wed Mar 24 12:25:00 UTC 2010


Package: supertuxkart
Version: 0.6.2+dfsg1-1
Severity: normal

Supertuxkart is under/overflowing gl matrix stacks because incorrect
handling of matrix mode.

I tried to submit fix for this to upstream project but they reject
because all development is going to trunk (0.7). [1]

Patch to fix the bug is attached to upstream mailing list post and is here:
Index: src/gui/race_gui.cpp
===================================================================
--- src/gui/race_gui.cpp	(revision 5049)
+++ src/gui/race_gui.cpp	(working copy)
@@ -963,6 +963,7 @@
     }   // if RACE_PHASE

     glPopAttrib  () ;
+    glMatrixMode ( GL_PROJECTION ) ;
     glPopMatrix  () ;
     glMatrixMode ( GL_MODELVIEW ) ;
     glPopMatrix  () ;

[1] http://sourceforge.net/mailarchive/forum.php?thread_name=548cdfc21003231345p7c6b8b99g7fee9deddb035d8e%40mail.gmail.com&forum_name=supertuxkart-devel





More information about the Pkg-games-devel mailing list