[Mesa-dev] [Bug 103332] glDrawArrays does not take the "first" argument into account

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Oct 18 09:34:40 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=103332

--- Comment #1 from Laurent Renard <laurent.renard at int.com> ---
I have tested with modified version of the tutorial found here :
http://www.opengl-tutorial.org/beginners-tutorials/tutorial-5-a-textured-cube/

Modifying the command 
// Draw the triangle !
glDrawArrays(GL_TRIANGLES, 0, 12*3); // 12*3 indices starting at 0 -> 12
triangles

By :
// Draw the triangle !
for (int c = 0 ; c < 12 ; c ++){
   glDrawArrays(GL_TRIANGLES, c * 3, 3); // 12*3 indices starting at 0 -> 12
triangles
}

does not show the issue.

I will try to go deeper and see where the issue is. (My code, JOGL or OpenSWR)

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20171018/afb131cf/attachment.html>


More information about the mesa-dev mailing list