Fix start offset of glDrawArrays for colours and vertices
This commit is contained in:
parent
a51cedad79
commit
6aacdcf573
|
@ -1199,9 +1199,9 @@ GLAPI void APIENTRY glDrawArrays(GLenum mode, GLint first, GLsizei count) {
|
|||
if(!_glKosArraysVerifyParameter(mode, count, first, 0))
|
||||
return;
|
||||
|
||||
GL_KOS_VERTEX_POINTER += first; /* Add Pointer Offset */
|
||||
GL_KOS_VERTEX_POINTER += (first * GL_KOS_VERTEX_STRIDE); /* Add Pointer Offset */
|
||||
GL_KOS_TEXCOORD0_POINTER += first;
|
||||
GL_KOS_COLOR_POINTER += first;
|
||||
GL_KOS_COLOR_POINTER += (first * GL_KOS_COLOR_STRIDE);
|
||||
GL_KOS_NORMAL_POINTER += first;
|
||||
|
||||
/* Compile the PVR polygon context with the currently enabled flags */
|
||||
|
|
Loading…
Reference in New Issue
Block a user