瀏覽代碼

use unused variable. Fixes #4560 (#4561)

Rico P 9 月之前
父節點
當前提交
ff71e3a513
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/rlgl.h

+ 1 - 1
src/rlgl.h

@@ -3959,7 +3959,7 @@ void rlDrawVertexArrayElements(int offset, int count, const void *buffer)
 void rlDrawVertexArrayInstanced(int offset, int count, int instances)
 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) || defined(GRAPHICS_API_OPENGL_ES2)
-    glDrawArraysInstanced(GL_TRIANGLES, 0, count, instances);
+    glDrawArraysInstanced(GL_TRIANGLES, offset, count, instances);
 #endif
 #endif
 }
 }