mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-12 12:08:58 +01:00
graphics: Reset source size parameter just in case
This commit is contained in:
parent
4aa5ee032f
commit
092cb2f3f6
@ -252,6 +252,8 @@ func (s *openGLState) useProgram(proj []float32, texture opengl.Texture, sourceW
|
||||
s.lastProjectionMatrix = nil
|
||||
s.lastColorMatrix = nil
|
||||
s.lastColorMatrixTranslation = nil
|
||||
s.lastSourceWidth = 0
|
||||
s.lastSourceHeight = 0
|
||||
c.BindElementArrayBuffer(s.elementArrayBuffer)
|
||||
c.UniformInt(program, "texture", 0)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user