/[pcsx2_0.9.7]/branch/r3113_0.9.7_beta_reference/plugins/zzogl-pg/opengl/ZZoglFlush.cpp
ViewVC logotype

Diff of /branch/r3113_0.9.7_beta_reference/plugins/zzogl-pg/opengl/ZZoglFlush.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- branch/r3113_0.9.7_beta_reference/plugins/zzogl-pg/opengl/ZZoglFlush.cpp	2010/09/13 17:18:05	173
+++ branch/r3113_0.9.7_beta_reference/plugins/zzogl-pg/opengl/ZZoglFlush.cpp	2010/09/13 17:24:24	174
@@ -339,12 +339,12 @@
 {
 #ifdef _DEBUG
 
-	if (g_bSaveFlushedFrame & 0x80000000)
-	{
-		char str[255];
-		sprintf(str, "rndr.tga", g_SaveFrameNum);
-		SaveRenderTarget(str, curvb.prndr->fbw, curvb.prndr->fbh, 0);
-	}
+	//if (g_bSaveFlushedFrame & 0x80000000)
+	//{
+	//	char str[255];
+	//	sprintf(str, "rndr.tga", g_SaveFrameNum);
+	//	SaveRenderTarget(str, curvb.prndr->fbw, curvb.prndr->fbh, 0);
+	//}
 
 #endif
 }
@@ -2120,18 +2120,18 @@
 
 		valpha2.x = (tex0.tfx == 1) ;
 		valpha2.y = (tex0.tcc == 1) && (tex0.tfx != 0) ;
-		valpha2.z = (tex0.tfx != 1) * 2 ;
+		valpha2.z = (tex0.tfx != 1) * 2.0f ;
 		valpha2.w = (tex0.tfx == 0) ;
 
 		if (tex0.tcc == 0 || !nNeedAlpha(psm))
 		{
 			valpha.x = 0 ;
-			valpha.y = (!!tex0.tcc) * (1 + (tex0.tfx == 0)) ;
+			valpha.y = (!!tex0.tcc) * (1.0f + (tex0.tfx == 0)) ;
 		}
 		else
 		{
-			valpha.x = (gs.texa.fta[0])  * (1 + (tex0.tfx == 0)) ;
-			valpha.y = (gs.texa.fta[psm!=1] - gs.texa.fta[0]) * (1 + (tex0.tfx == 0))  ;
+			valpha.x = (gs.texa.fta[0])  * (1.0f + (tex0.tfx == 0)) ;
+			valpha.y = (gs.texa.fta[psm!=1] - gs.texa.fta[0]) * (1.0f + (tex0.tfx == 0))  ;
 		}
 
 		valpha.z = (tex0.tfx >= 3) ;

 

  ViewVC Help
Powered by ViewVC 1.1.22