r1337 - trunk/code/cgame
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Sat May 3 08:58:14 EDT 2008
Author: thilo
Date: 2008-05-03 08:58:14 -0400 (Sat, 03 May 2008)
New Revision: 1337
Modified:
trunk/code/cgame/cg_draw.c
Log:
Show true framerate with stereo separation enabled
Modified: trunk/code/cgame/cg_draw.c
===================================================================
--- trunk/code/cgame/cg_draw.c 2008-05-01 16:10:01 UTC (rev 1336)
+++ trunk/code/cgame/cg_draw.c 2008-05-03 12:58:14 UTC (rev 1337)
@@ -976,7 +976,8 @@
=====================
*/
-static void CG_DrawUpperRight( void ) {
+static void CG_DrawUpperRight(stereoFrame_t stereoFrame)
+{
float y;
y = 0;
@@ -987,7 +988,7 @@
if ( cg_drawSnapshot.integer ) {
y = CG_DrawSnapshot( y );
}
- if ( cg_drawFPS.integer ) {
+ if (cg_drawFPS.integer && (stereoFrame == STEREO_CENTER || stereoFrame == STEREO_RIGHT)) {
y = CG_DrawFPS( y );
}
if ( cg_drawTimer.integer ) {
@@ -2594,10 +2595,10 @@
#ifdef MISSIONPACK
if (!cg_paused.integer) {
- CG_DrawUpperRight();
+ CG_DrawUpperRight(stereoFrame);
}
#else
- CG_DrawUpperRight();
+ CG_DrawUpperRight(stereoFrame);
#endif
#ifndef MISSIONPACK
More information about the quake3-commits
mailing list