GS-ogl: Fix regression that broke linux HW mode

This commit is contained in:
Ty Lamontagne 2021-09-26 11:59:37 -04:00 committed by refractionpcsx2
parent 485e514409
commit cd22a1d00d
1 changed files with 5 additions and 1 deletions

View File

@ -1930,13 +1930,17 @@ void GSDeviceOGL::SetupCBMisc(const GSVector4i& channel)
void GSDeviceOGL::SetupPipeline(const VSSelector& vsel, const GSSelector& gsel, const PSSelector& psel)
{
auto i = m_ps.find(psel);
GLuint ps = i->second;
GLuint ps;
if (i == m_ps.end())
{
ps = CompilePS(psel);
m_ps[psel] = ps;
}
else
{
ps = i->second;
}
{
#if defined(_DEBUG) && 0