Skip to content

Commit 40c921f

Browse files
TheLastRarSternXD
authored andcommitted
GS/GL: Reset last used program in DoLibrashader()
1 parent 7387d57 commit 40c921f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

pcsx2/GS/Renderers/OpenGL/GSDeviceOGL.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3550,11 +3550,13 @@ bool GSDeviceOGL::DoLibrashader(GSTexture* sTex, GSTexture* dTex)
35503550
{
35513551
Console.ErrorFmt("librashader: OpenGL frame rendering failed: {}", GetLibrashaderError(err));
35523552
GLState::Invalidate();
3553+
GLProgram::ResetLastProgram();
35533554
return false;
35543555
}
35553556

35563557
// librashader binds its own program/FBO/samplers wipe our cache so the next call rebinds.
35573558
GLState::Invalidate();
3559+
GLProgram::ResetLastProgram();
35583560
return true;
35593561
}
35603562

0 commit comments

Comments
 (0)