diff options
| author | Antonio Jose Ramos Marquez <[email protected]> | 2021-05-08 18:24:14 +0200 |
|---|---|---|
| committer | GitHub <[email protected]> | 2021-05-08 18:24:14 +0200 |
| commit | 2565c011580fda074e0f3dceacd5e6a1476b3284 (patch) | |
| tree | 852dab8ea709f95bb91603679a112e53f72beaed /src/rlgl.h | |
| parent | 133e6f097d9c088c36100cc1cd1d0773daf8e19b (diff) | |
| download | raylib-2565c011580fda074e0f3dceacd5e6a1476b3284.tar.gz raylib-2565c011580fda074e0f3dceacd5e6a1476b3284.zip | |
check for vao extension (#1757)
Diffstat (limited to 'src/rlgl.h')
| -rw-r--r-- | src/rlgl.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -3141,7 +3141,10 @@ unsigned int rlLoadVertexArray(void) { unsigned int vaoId = 0; #if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2) - glGenVertexArrays(1, &vaoId); + if (RLGL.ExtSupported.vao) + { + glGenVertexArrays(1, &vaoId); + } #endif return vaoId; } |
