graphics: Reset source size parameter just in case

This commit is contained in:
Hajime Hoshi 2018-02-22 11:27:15 +09:00
parent 4aa5ee032f
commit 092cb2f3f6

View File

@ -252,6 +252,8 @@ func (s *openGLState) useProgram(proj []float32, texture opengl.Texture, sourceW
s.lastProjectionMatrix = nil s.lastProjectionMatrix = nil
s.lastColorMatrix = nil s.lastColorMatrix = nil
s.lastColorMatrixTranslation = nil s.lastColorMatrixTranslation = nil
s.lastSourceWidth = 0
s.lastSourceHeight = 0
c.BindElementArrayBuffer(s.elementArrayBuffer) c.BindElementArrayBuffer(s.elementArrayBuffer)
c.UniformInt(program, "texture", 0) c.UniformInt(program, "texture", 0)
} }