mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +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