Bug fix: opengl.Program can't take 0 (in gopherjs)

This commit is contained in:
Hajime Hoshi 2014-12-31 23:53:54 +09:00
parent 438380bb6e
commit bcbaf2e674

View File

@ -64,7 +64,7 @@ func initialize(c *opengl.Context) error {
return nil
}
var lastProgram opengl.Program = 0
var lastProgram opengl.Program
func useProgramColorMatrix(c *opengl.Context, projectionMatrix [16]float32, geo Matrix, color Matrix) opengl.Program {
if lastProgram != programColorMatrix {