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:
Gregory Hainaut 2015-10-18 19:25:39 +02:00
commit 395b4c25f3
1 changed files with 1 additions and 1 deletions

View File

@ -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) if(GLState::viewport != size)
{ {
GLState::viewport = size; GLState::viewport = size;