error.go (200B)
1 package tofu 2 3 import ( 4 "fmt" 5 "github.com/go-gl/gl/v3.3-core/gl" 6 ) 7 8 func Error() error { 9 errno := gl.GetError() 10 if errno == gl.NO_ERROR { 11 return nil 12 } 13 return fmt.Errorf("err: 0x%04X", errno) 14 }
tofuMaking something with OpenGL in Go | |
Log | Files | Refs |