Last active
June 1, 2019 21:45
-
-
Save Nehon/280ca8d3cedeffdbe3073918777e582a to your computer and use it in GitHub Desktop.
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
using func = void(*)(GLuint); | |
const func bindVaoFunctions[] {emulateBindVAO, glBindVertexArray}; | |
... | |
#ifdef __EMSCRIPTEN__ | |
const int hasVAO = getWebglCaps().hasVAO; | |
bindVaoFunction[hasVao](vao); | |
#else |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment