GSDeviceOGL: Don't set scissor unconditionally

This commit is contained in:
Connor McLaughlin 2021-12-21 20:42:50 +10:00 committed by lightningterror
parent e006442e4f
commit 7d39d02e98
1 changed files with 5 additions and 2 deletions

View File

@ -2005,8 +2005,11 @@ static GSDeviceOGL::VSSelector convertSel(const GSHWDrawConfig::VSSelector sel)
void GSDeviceOGL::RenderHW(GSHWDrawConfig& config)
{
glScissor(config.scissor.x, config.scissor.y, config.scissor.width(), config.scissor.height());
GLState::scissor = config.scissor;
if (!GLState::scissor.eq(config.scissor))
{
glScissor(config.scissor.x, config.scissor.y, config.scissor.width(), config.scissor.height());
GLState::scissor = config.scissor;
}
// Destination Alpha Setup
switch (config.destination_alpha)