We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Before fix:
func initScene() (err error) { texture, err = createTextureFromBytes(gopher_png[:]) return }
Gives compile error:
hornet: gopher$ go run gopher.go # command-line-arguments ./gopher.go:119: undefined: gopher_png
After fix:
func initScene() (err error) { gopher_png, err := ioutil.ReadFile("gopher.png") if err != nil { panic("Could not load png") } texture, err = createTextureFromBytes(gopher_png) return }
The text was updated successfully, but these errors were encountered:
Fix examples/gopher/gopher.go couldn't load PNG - issue chsc#36
6c35ac6
No, the PNG image is embedded in gopher.png.go. Please compile/run the full source code with "go build" or "go run gopher.go gopher.png.go".
Sorry, something went wrong.
No branches or pull requests
Before fix:
Gives compile error:
After fix:
The text was updated successfully, but these errors were encountered: