mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +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 {
|
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 {
|
||||||
|
Loading…
Reference in New Issue
Block a user