graphicsdriver/opengl: Bug fix: deleted a wrong shader program

Updates #482
This commit is contained in:
Hajime Hoshi 2020-05-23 22:36:50 +09:00
parent 1a0d92267b
commit 521f9dcac5

View File

@ -62,7 +62,7 @@ func (s *Shader) compile() error {
if err != nil { if err != nil {
return err return err
} }
defer s.graphics.context.deleteShader(vs) defer s.graphics.context.deleteShader(fs)
p, err := s.graphics.context.newProgram([]shader{vs, fs}, theArrayBufferLayout.names()) p, err := s.graphics.context.newProgram([]shader{vs, fs}, theArrayBufferLayout.names())
if err != nil { if err != nil {