mirror of
https://github.com/PCSX2/pcsx2.git
synced 2026-11-15 02:30:32 +01:00
gsdx-d3d11: Fix Depth FST
Texture scaling for x/y values wasn't being set in all cases. This ensures that it is to fix a bug in finding nemo (and possibly others).
This commit is contained in:
1 parent
1957cf13c2
commit
a2f3b78bac
1 file changed
+4
-3
@@ -297,11 +297,12 @@ void GSRendererDX::EmulateTextureSampler(const GSTextureCache::Source* tex)
|
||||
m_ps_sel.spritehack = tex->m_spritehack_t;
|
||||
m_ps_sel.point_sampler = !bilinear || shader_emulated_sampler;
|
||||
|
||||
GSVector4 TextureScale = GSVector4(0.0625f) / WH.xyxy();
|
||||
vs_cb.Texture_Scale_Offset.x = TextureScale.x;
|
||||
vs_cb.Texture_Scale_Offset.y = TextureScale.y;
|
||||
|
||||
if (PRIM->FST)
|
||||
{
|
||||
GSVector4 TextureScale = GSVector4(0.0625f) / WH.xyxy();
|
||||
vs_cb.Texture_Scale_Offset.x = TextureScale.x;
|
||||
vs_cb.Texture_Scale_Offset.y = TextureScale.y;
|
||||
//Maybe better?
|
||||
//vs_cb.TextureScale = GSVector4(1.0f / 16) * GSVector4(tex->m_texture->GetScale()).xyxy() / WH.zwzw();
|
||||
m_ps_sel.fst = 1;
|
||||
|
||||
Reference in new issue
Block a user