mirror of
https://github.com/libretro/pcsx2.git
synced 2024-12-18 23:59:32 +00:00
gsdx-ogl: correct texture coordinate by 0.5 when vertex position is -0.5
Avoid ghosting in Captain tsubasa
This commit is contained in:
parent
61a7c747e1
commit
a95adcb999
@ -760,6 +760,9 @@ void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source*
|
||||
} else if (linear && t_position == 16) {
|
||||
half_offset.x = 16;
|
||||
half_offset.y = 16;
|
||||
} else if (m_vt.m_min.p.x == -0.5f) {
|
||||
half_offset.x = 8;
|
||||
half_offset.y = 8;
|
||||
}
|
||||
} else {
|
||||
if (!linear && t_position == 8) {
|
||||
@ -768,6 +771,9 @@ void GSRendererOGL::RealignTargetTextureCoordinate(const GSTextureCache::Source*
|
||||
} else if (linear && t_position == 16) {
|
||||
half_offset.x = 16 - 16 / scale.x;
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user