[Scummvm-cvs-logs] SF.net SVN: scummvm: [33074] residual/trunk/engine/backend/sdl/driver_gl. cpp

drmccoy at users.sourceforge.net drmccoy at users.sourceforge.net
Tue Jul 15 17:39:20 CEST 2008


Revision: 33074
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33074&view=rev
Author:   drmccoy
Date:     2008-07-15 08:39:20 -0700 (Tue, 15 Jul 2008)

Log Message:
-----------
Disabling GL_TEXTURE_2D in drawDepthBitmap(). This drastically increases performance with the zbuffer for me

Modified Paths:
--------------
    residual/trunk/engine/backend/sdl/driver_gl.cpp

Modified: residual/trunk/engine/backend/sdl/driver_gl.cpp
===================================================================
--- residual/trunk/engine/backend/sdl/driver_gl.cpp	2008-07-15 11:40:42 UTC (rev 33073)
+++ residual/trunk/engine/backend/sdl/driver_gl.cpp	2008-07-15 15:39:20 UTC (rev 33074)
@@ -564,6 +564,8 @@
 		glBitmap(0, 0, 0, 0, 0, -1, NULL);
 	} else
 		glRasterPos2i(x, y + h);
+
+	glDisable(GL_TEXTURE_2D);
 	glEnable(GL_DEPTH_TEST);
 	glDepthFunc(GL_ALWAYS);
 	glColorMask(GL_FALSE, GL_FALSE, GL_FALSE, GL_FALSE);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list