diff --git a/internal/graphicsdriver/opengl/shader.go b/internal/graphicsdriver/opengl/shader.go index 8fbd07308..853cedc7a 100644 --- a/internal/graphicsdriver/opengl/shader.go +++ b/internal/graphicsdriver/opengl/shader.go @@ -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 {