mirror of
https://github.com/raysan5/raylib.git
synced 2025-09-21 18:58:14 +00:00
check for vao extension (#1757)
This commit is contained in:

committed by
GitHub

parent
133e6f097d
commit
2565c01158
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user