浏览代码

Fixing pointer arithmetic to avoid error [-Werror=pointer-arith] (#1685)

pull/1687/head
Maksymilian Mika 3 年前
committed by GitHub
父节点
当前提交
f38ced15e7
找不到此签名对应的密钥 GPG 密钥 ID: 4AEE18F83AFDEB23
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. +2
    -2
      src/rlgl.h

+ 2
- 2
src/rlgl.h 查看文件

@ -3118,7 +3118,7 @@ void rlDrawVertexArray(int offset, int count)
void rlDrawVertexArrayElements(int offset, int count, void *buffer)
{
glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, buffer + offset);
glDrawElements(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, p">(unsigned short*)buffer + offset);
}
void rlDrawVertexArrayInstanced(int offset, int count, int instances)
@ -3131,7 +3131,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, buffer + offset, instances);
glDrawElementsInstanced(GL_TRIANGLES, count, GL_UNSIGNED_SHORT, p">(unsigned short*)buffer + offset, instances);
#endif
}

正在加载...
取消
保存