mirror of https://github.com/PCSX2/pcsx2.git
Merge pull request #899 from ssakash/gsdx_nullcheck
gsdx: use old size of target if ds and rt is null
This commit is contained in:
commit
395b4c25f3
|
@ -1411,7 +1411,7 @@ void GSDeviceOGL::OMSetRenderTargets(GSTexture* rt, GSTexture* ds, const GSVecto
|
|||
}
|
||||
|
||||
|
||||
GSVector2i size = rt ? rt->GetSize() : ds->GetSize();
|
||||
GSVector2i size = rt ? rt->GetSize() : ds ? ds->GetSize() : GLState::viewport;
|
||||
if(GLState::viewport != size)
|
||||
{
|
||||
GLState::viewport = size;
|
||||
|
|
Loading…
Reference in New Issue