From ce8fc39451abd018d37fa1ba111f871bb36ee43b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Fri, 13 Aug 2021 23:44:26 +0900 Subject: [PATCH] internal/graphicsdriver/opengl: Bug fix: the current program must be reset Updates #1751 --- internal/graphicsdriver/opengl/program.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/graphicsdriver/opengl/program.go b/internal/graphicsdriver/opengl/program.go index 4bf6aa246..8c203a7c9 100644 --- a/internal/graphicsdriver/opengl/program.go +++ b/internal/graphicsdriver/opengl/program.go @@ -148,6 +148,7 @@ func (s *openGLState) reset(context *context) error { } s.lastProgram = zeroProgram + context.useProgram(zeroProgram) s.lastUniforms = map[string]interface{}{} // When context lost happens, deleting programs or buffers is not necessary.