summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2021-07-27 23:35:54 +0200
committerraysan5 <[email protected]>2021-07-27 23:35:54 +0200
commite9c7ab925fe3fb8530389f0e554496bdf3fa6ce9 (patch)
tree08c6d29ca5a14ea96dac2c8ce395ce04f470668b /src/rlgl.h
parent70ed52dd5d972a33268b603930ffbb9e1338da24 (diff)
downloadraylib-e9c7ab925fe3fb8530389f0e554496bdf3fa6ce9.tar.gz
raylib-e9c7ab925fe3fb8530389f0e554496bdf3fa6ce9.zip
REVIEWED: rlDrawVertexArrayElements() #1891
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index a2d890e6..f8ca4fa2 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -3121,7 +3121,7 @@ void rlDrawVertexArray(int offset, int count)
void rlDrawVertexArrayElements(int offset, int count, void *buffer)
{
- glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (unsigned short*)buffer + offset);
+ glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (unsigned short *)buffer + offset);
}
void rlDrawVertexArrayInstanced(int offset, int count, int instances)
@@ -3134,7 +3134,7 @@ void rlDrawVertexArrayInstanced(int offset, int count, int instances)
void rlDrawVertexArrayElementsInstanced(int offset, int count, void *buffer, int instances)
{
#if defined(GRAPHICS_API_OPENGL_33) || defined(GRAPHICS_API_OPENGL_ES2)
- glDrawElementsInstanced(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (unsigned short*)buffer + offset, instances);
+ glDrawElementsInstanced(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, (unsigned short *)buffer + offset, instances);
#endif
}