diff options
| author | Ray <[email protected]> | 2022-06-18 19:24:11 +0200 |
|---|---|---|
| committer | Ray <[email protected]> | 2022-06-18 19:24:11 +0200 |
| commit | 8fe6bfabbf91913fcca10ab12d23fcbde568f7b1 (patch) | |
| tree | bd08bab844152ad09cf7befb0a6dd8687aaa13fd /src | |
| parent | 6f3b2a76614369f03721b9bac71727b6a5fcf393 (diff) | |
| download | raylib-8fe6bfabbf91913fcca10ab12d23fcbde568f7b1.tar.gz raylib-8fe6bfabbf91913fcca10ab12d23fcbde568f7b1.zip | |
Update rlgl.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/rlgl.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) || defined(GRAPHICS_API_OPENGL_ES2) +#if defined(GRAPHICS_API_OPENGL_33) 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) || defined(GRAPHICS_API_OPENGL_ES2) +#if defined(GRAPHICS_API_OPENGL_33) 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) || defined(GRAPHICS_API_OPENGL_ES2) +#if defined(GRAPHICS_API_OPENGL_33) glVertexAttribDivisor(index, divisor); #endif } |
