/[pcsx2_0.9.7]/patches/revision_patches/r3760/fix-warnings/r3760-plugins-ZZOgl-ZZoglFlush.cpp-ZeroGS_SetTexVariables_dont_mix_dReals_with_ints_use_floats_fix.patch
ViewVC logotype

Contents of /patches/revision_patches/r3760/fix-warnings/r3760-plugins-ZZOgl-ZZoglFlush.cpp-ZeroGS_SetTexVariables_dont_mix_dReals_with_ints_use_floats_fix.patch

Parent Directory Parent Directory | Revision Log Revision Log


Revision 166 - (show annotations) (download)
Mon Sep 13 15:54:49 2010 UTC (10 years, 2 months ago) by william
File size: 933 byte(s)
fix patch to bring foward ./r3744/fix-warnings/r3744-plugins-ZZOgl-ZZoglFlush.cpp-ZeroGS_SetTexVariables_dont_mix_dReals_with_ints_use_floats_fix.patch

1 --- trunk/plugins/zzogl-pg/opengl/ZZoglFlush.cpp 2010-09-13 11:50:38.525953600 -0400
2 +++ trunk/plugins/zzogl-pg/opengl/ZZoglFlush.cpp.patched 2010-09-13 11:49:38.040444600 -0400
3 @@ -2135,18 +2135,18 @@
4
5 valpha2.x = (tex0.tfx == 1) ;
6 valpha2.y = (tex0.tcc == 1) && (tex0.tfx != 0) ;
7 - valpha2.z = (tex0.tfx != 1) * 2 ;
8 + valpha2.z = (tex0.tfx != 1) * 2.0f ;
9 valpha2.w = (tex0.tfx == 0) ;
10
11 if (tex0.tcc == 0 || !PSMT_ALPHAEXP(psm))
12 {
13 valpha.x = 0 ;
14 - valpha.y = (!!tex0.tcc) * (1 + (tex0.tfx == 0)) ;
15 + valpha.y = (!!tex0.tcc) * (1.0f + (tex0.tfx == 0)) ;
16 }
17 else
18 {
19 - valpha.x = (gs.texa.fta[0]) * (1 + (tex0.tfx == 0)) ;
20 - valpha.y = (gs.texa.fta[psm != PSMCT24] - gs.texa.fta[0]) * (1 + (tex0.tfx == 0)) ;
21 + valpha.x = (gs.texa.fta[0]) * (1.0f + (tex0.tfx == 0)) ;
22 + valpha.y = (gs.texa.fta[psm != PSMCT24] - gs.texa.fta[0]) * (1.0f + (tex0.tfx == 0)) ;
23
24 }
25

  ViewVC Help
Powered by ViewVC 1.1.22