Created
February 24, 2021 20:39
-
-
Save zetashift/2c7fc4248dc7e567847f44716de21d33 to your computer and use it in GitHub Desktop.
Nim - variable immutable after setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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