internal/graphicsdriver/opengl: Bug fix: the current program must be reset

Updates #1751
This commit is contained in:
Hajime Hoshi 2021-08-13 23:44:26 +09:00
parent ebfe494f4f
commit 440801c20c

View File

@ -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.