mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 10:48:53 +01:00
graphicsdriver/opengl: Bug fix: fmt arguments
This commit is contained in:
parent
8738d182fb
commit
1cfc1964bf
@ -55,13 +55,13 @@ func (s *Shader) compile() error {
|
||||
|
||||
vs, err := s.graphics.context.newShader(vertexShader, vssrc)
|
||||
if err != nil {
|
||||
return fmt.Errorf("opengl: vertex shader compile error: %v, source:\n%s", vssrc)
|
||||
return fmt.Errorf("opengl: vertex shader compile error: %v, source:\n%s", err, vssrc)
|
||||
}
|
||||
defer s.graphics.context.deleteShader(vs)
|
||||
|
||||
fs, err := s.graphics.context.newShader(fragmentShader, fssrc)
|
||||
if err != nil {
|
||||
return fmt.Errorf("opengl: fragment shader compile error: %v, source:\n%s", fssrc)
|
||||
return fmt.Errorf("opengl: fragment shader compile error: %v, source:\n%s", err, fssrc)
|
||||
}
|
||||
defer s.graphics.context.deleteShader(fs)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user