ZeroGS: Commit Zeydlitz's bug fix from Issue 11, which seems to resolve most problems with double images when antialiasing is on in the OpenGL version of ZeroGS.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@495 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
arcum42 2009-02-14 23:47:09 +00:00
parent fe183b91bf
commit c987d23b9f
1 changed files with 6 additions and 6 deletions

View File

@ -2916,8 +2916,9 @@ void ZeroGS::Flush(int context)
} }
Vector vTexDims; Vector vTexDims;
vTexDims.x = curvb.tex0.tw; vTexDims.x = curvb.tex0.tw << s_AAx ;
vTexDims.y = curvb.tex0.th; vTexDims.y = curvb.tex0.th << s_AAy ;
// look at the offset of tbp0 from fbp // look at the offset of tbp0 from fbp
if( curvb.tex0.tbp0 <= ptextarg->fbp ) { if( curvb.tex0.tbp0 <= ptextarg->fbp ) {
@ -2933,9 +2934,8 @@ void ZeroGS::Flush(int context)
vTexDims.w = (float)ycoord; vTexDims.w = (float)ycoord;
} }
if( shadertype == 4 ) { if( shadertype == 4 ) vTexDims.z += 8.0f;
vTexDims.z += 8.0f;
}
cgGLSetParameter4fv(pfragment->fTexDims, vTexDims); cgGLSetParameter4fv(pfragment->fTexDims, vTexDims);