grovesNL / glow

GL on Whatever: a set of bindings to run GL anywhere and avoid target-specific code
Apache License 2.0
1.2k stars 130 forks source link

check `gl.GetString` return value is `null` in `get_parameter_string` #226

Closed zirconium-n closed 2 years ago

zirconium-n commented 2 years ago

This fixes segfault (with an panic) under GL context 1.4, which is the default version of GL in WSL2.

grovesNL commented 2 years ago

bors r+

grovesNL commented 2 years ago

bors r+

bors[bot] commented 2 years ago

Already running a review

bors[bot] commented 2 years ago

Build succeeded: