Browse Source

check for vao extension (#1757)

pull/1751/head
Antonio Jose Ramos Marquez 4 years ago
committed by GitHub
parent
commit
2565c01158
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/rlgl.h

+ 4
- 1
src/rlgl.h View File

@ -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;
}

Loading…
Cancel
Save