mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/graphicsdriver/opengl: Bug fix: the current program must be reset
Updates #1751
This commit is contained in:
parent
ebfe494f4f
commit
440801c20c
@ -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