mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 02:38:53 +01:00
graphicsdriver/opengl: Bug fix: deleted a wrong shader program
Updates #482
This commit is contained in:
parent
1a0d92267b
commit
521f9dcac5
@ -62,7 +62,7 @@ func (s *Shader) compile() error {
|
||||
if err != nil {
|
||||
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())
|
||||
if err != nil {
|
||||
|
Loading…
Reference in New Issue
Block a user