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 797f42b839
commit ce8fc39451

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.