Skip to content

Instantly share code, notes, and snippets.

@zetashift
Created February 24, 2021 20:39
Show Gist options
  • Save zetashift/2c7fc4248dc7e567847f44716de21d33 to your computer and use it in GitHub Desktop.
Save zetashift/2c7fc4248dc7e567847f44716de21d33 to your computer and use it in GitHub Desktop.
Nim - variable immutable after setup
let vao = block:
var res: GLuint
glGenVertextArrays(1, addr res)
res
glBindVertextArray(vao)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment