From c987d23b9f4801de0ae95be9fcfd83d0a075d70b Mon Sep 17 00:00:00 2001 From: arcum42 Date: Sat, 14 Feb 2009 23:47:09 +0000 Subject: [PATCH] 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 --- plugins/zerogs/opengl/zerogs.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/plugins/zerogs/opengl/zerogs.cpp b/plugins/zerogs/opengl/zerogs.cpp index b85b1bbea3..971174b10a 100644 --- a/plugins/zerogs/opengl/zerogs.cpp +++ b/plugins/zerogs/opengl/zerogs.cpp @@ -2914,10 +2914,11 @@ void ZeroGS::Flush(int context) glTexParameteri(GL_TEXTURE_RECTANGLE_NV, GL_TEXTURE_MIN_FILTER, GL_NEAREST); dwFilterOpts |= 2; } - + Vector vTexDims; - vTexDims.x = curvb.tex0.tw; - vTexDims.y = curvb.tex0.th; + vTexDims.x = curvb.tex0.tw << s_AAx ; + vTexDims.y = curvb.tex0.th << s_AAy ; + // look at the offset of tbp0 from fbp if( curvb.tex0.tbp0 <= ptextarg->fbp ) { @@ -2933,9 +2934,8 @@ void ZeroGS::Flush(int context) vTexDims.w = (float)ycoord; } - if( shadertype == 4 ) { - vTexDims.z += 8.0f; - } + if( shadertype == 4 ) vTexDims.z += 8.0f; + cgGLSetParameter4fv(pfragment->fTexDims, vTexDims);