mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
internal/graphicsdriver/opengl: Bug fix: the current program must be reset
Updates #1751
This commit is contained in:
parent
797f42b839
commit
ce8fc39451
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user