GSDX: Disable Nvidia hack when in native res

This commit is contained in:
refractionpcsx2 2016-02-15 20:27:51 +00:00
parent aff75131e4
commit 909584d473
1 changed files with 3 additions and 2 deletions

View File

@ -1262,14 +1262,15 @@ void GSDevice11::OMSetRenderTargets(GSTexture* rt, GSTexture* ds, const GSVector
GSVector2i size = rt ? rt->GetSize() : ds->GetSize(); GSVector2i size = rt ? rt->GetSize() : ds->GetSize();
if(m_state.viewport != size) if(m_state.viewport != size)
{ {
bool isNative = theApp.GetConfig("upscale_multiplier", 1) == 1;
m_state.viewport = size; m_state.viewport = size;
D3D11_VIEWPORT vp; D3D11_VIEWPORT vp;
memset(&vp, 0, sizeof(vp)); memset(&vp, 0, sizeof(vp));
vp.TopLeftX = (spritehack > 0) ? 0.0f : -0.01f; vp.TopLeftX = (spritehack > 0 || isNative) ? 0.0f : -0.01f;
vp.TopLeftY = (spritehack > 0) ? 0.0f : -0.01f; vp.TopLeftY = (spritehack > 0 || isNative) ? 0.0f : -0.01f;
vp.Width = (float)size.x; vp.Width = (float)size.x;
vp.Height = (float)size.y; vp.Height = (float)size.y;
vp.MinDepth = 0.0f; vp.MinDepth = 0.0f;