azul3d / engine

Azul3D - A 3D game engine written in Go!
https://azul3d.org
Other
606 stars 54 forks source link

Sane Defaults for glc/convert.go #163

Open nathanielc opened 7 years ago

nathanielc commented 7 years ago

Quite frequently, about 1 out of 5 times, on startup of my application I get a panic from one of the various Unconvert functions in glc/convert.go. I have traced several of them down and they all seem to be getting 0s from the GetParameterInt function.

Are there sane defaults that can be chosen instead of panicking? Or maybe the error could be directly handled and recovered instead of panicking?

My env: Arch Linux, with Nvidia + Intel Graphics using bumblebee I can provide the specific card details if it matters.