summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRay <[email protected]>2022-06-18 20:47:49 +0200
committerRay <[email protected]>2022-06-18 20:47:49 +0200
commit0afa79067b1beb00119942c4565fe3406d3d1ce7 (patch)
tree25476694f833e44890e5bab9cdad9c770e65b48e
parent5426262ae6461362ec7a61d72a436db4a5833745 (diff)
downloadraylib-0afa79067b1beb00119942c4565fe3406d3d1ce7.tar.gz
raylib-0afa79067b1beb00119942c4565fe3406d3d1ce7.zip
Revert "Update rlgl.h"
This reverts commit 8fe6bfabbf91913fcca10ab12d23fcbde568f7b1.
-rw-r--r--src/rlgl.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index d563a062..ce784117 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3475,7 +3475,7 @@ void rlDrawVertexArrayElements(int offset, int count, const void *buffer)
// Draw vertex array instanced
void rlDrawVertexArrayInstanced(int offset, int count, int instances)
{
-#if defined(GRAPHICS_API_OPENGL_33)
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
glDrawArraysInstanced(GL_TRIANGLES, 0, count, instances);
#endif
}
@@ -3483,7 +3483,7 @@ void rlDrawVertexArrayInstanced(int offset, int count, int instances)
// Draw vertex array elements instanced
void rlDrawVertexArrayElementsInstanced(int offset, int count, const void *buffer, int instances)
{
-#if defined(GRAPHICS_API_OPENGL_33)
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
glDrawElementsInstanced(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (const unsigned short *)buffer + offset, instances);
#endif
}
@@ -3535,7 +3535,7 @@ void rlSetVertexAttribute(unsigned int index, int compSize, int type, bool norma
// Set vertex attribute divisor
void rlSetVertexAttributeDivisor(unsigned int index, int divisor)
{
-#if defined(GRAPHICS_API_OPENGL_33)
+#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
glVertexAttribDivisor(index, divisor);
#endif
}