mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
fe183b91bf
commit
c987d23b9f
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue