gsdx-ogl: correct texture coordinate by 0.5 when vertex position is -0.5

Avoid ghosting in Captain tsubasa
This commit is contained in:
Gregory Hainaut 2016-08-09 15:14:13 +02:00
parent 61a7c747e1
commit a95adcb999
1 changed files with 6 additions and 0 deletions

View File

@ -760,6 +760,9 @@ void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source*
} else if (linear && t_position == 16) { } else if (linear && t_position == 16) {
half_offset.x = 16; half_offset.x = 16;
half_offset.y = 16; half_offset.y = 16;
} else if (m_vt.m_min.p.x == -0.5f) {
half_offset.x = 8;
half_offset.y = 8;
} }
} else { } else {
if (!linear && t_position == 8) { if (!linear && t_position == 8) {
@ -768,6 +771,9 @@ void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source*
} else if (linear && t_position == 16) { } else if (linear && t_position == 16) {
half_offset.x = 16 - 16 / scale.x; half_offset.x = 16 - 16 / scale.x;
half_offset.y = 16 - 16 / scale.y; half_offset.y = 16 - 16 / scale.y;
} else if (m_vt.m_min.p.x == -0.5f) {
half_offset.x = 8;
half_offset.y = 8;
} }
} }