mirror of
https://github.com/raysan5/raylib.git
synced 2025-10-14 05:46:03 +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;
|
unsigned int vaoId = 0;
|
||||||
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
|
||||||
|
if (RLGL.ExtSupported.vao)
|
||||||
|
{
|
||||||
glGenVertexArrays(1, &vaoId);
|
glGenVertexArrays(1, &vaoId);
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
return vaoId;
|
return vaoId;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user