r736 - trunk/game

lordhavoc at icculus.org lordhavoc at icculus.org
Sat Dec 23 04:49:13 EST 2006


Author: lordhavoc
Date: 2006-12-23 04:49:13 -0500 (Sat, 23 Dec 2006)
New Revision: 736

Modified:
   trunk/game/g_render.c
Log:
set the blendfunc before rendering the fps/location overlay


Modified: trunk/game/g_render.c
===================================================================
--- trunk/game/g_render.c	2006-12-23 09:48:53 UTC (rev 735)
+++ trunk/game/g_render.c	2006-12-23 09:49:13 UTC (rev 736)
@@ -492,6 +492,7 @@
 	snprintf(tempstring, sizeof(tempstring), "fps%5i camera origin %-10.4f %-10.4f %-10.4f camera forward %-6.4f %-6.4f %-6.4f", GS.fps, G.cameramatrix.m[0][3], G.cameramatrix.m[1][3], G.cameramatrix.m[2][3], G.cameramatrix.m[0][0], G.cameramatrix.m[0][1], G.cameramatrix.m[0][2]);
 	R_SetDrawMode(R_DRAWMODE_HUD);
 	R_SetColor(1, 1, 1, 1);
+	R_SetBlendFunc(GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA);
 	R_SetTexture(R.resource_font);
 	R_DrawString(tempstring, 0, 0, R.height - 8, 8, 8, Console_DefaultColorTable, Console_DefaultColorTableSize, 0);
 	R_DrawSpeeds(0, R.height - 8);




More information about the neither-commits mailing list