Skip to content

Commit 1d16b3a

Browse files
TheLastRarSternXD
authored andcommitted
GS/GL: Reset last used program in DoLibrashader()
1 parent 8c6f1af commit 1d16b3a

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
@@ -3450,11 +3450,13 @@ bool GSDeviceOGL::DoLibrashader(GSTexture* sTex, GSTexture* dTex)
34503450
{
34513451
Console.ErrorFmt("librashader: OpenGL frame rendering failed: {}", GetLibrashaderError(err));
34523452
GLState::Invalidate();
3453+
GLProgram::ResetLastProgram();
34533454
return false;
34543455
}
34553456

34563457
// librashader binds its own program/FBO/samplers wipe our cache so the next call rebinds.
34573458
GLState::Invalidate();
3459+
GLProgram::ResetLastProgram();
34583460
return true;
34593461
}
34603462

0 commit comments

Comments
 (0)