[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 08:57:10 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=103332
Bug ID: 103332
Summary: glDrawArrays does not take the "first" argument into
account
Product: Mesa
Version: 17.2
Hardware: Other
OS: Linux (All)
Status: NEW
Severity: normal
Priority: medium
Component: Drivers/Gallium/swr
Assignee: mesa-dev at lists.freedesktop.org
Reporter: laurent.renard at int.com
QA Contact: mesa-dev at lists.freedesktop.org
I am using the glMultiDrawArrays command to render some text with multiple
triangle strip (2 triangles for each character).
With GALLIUM_DRIVER=swr only the first character is rendered.
I replace the glMuliDrawArrays command by a loop containing the glDrawArrays
command with the correct "first" vertex argument but it does not changes the
result.
If I then modifie the buffer in my loop to put the vertices I want to render at
the beginning of the buffer and use glDrawArrays(GL_TRIANGLE_STRIP, 0, count)
the rendering is OK.
If I switch to softpipe or llvmpipe the rendering is OK.
It is as if th draw arrays command were not taking the first parameter into
account.
(I also tested the code on NVidia proprietary driver and everything works well
and Intel HD Graphics+Windows too).
I am using JOGL since my app is in Java but I will try to provide a simpler
example if possible.
--
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/c0e3b49f/attachment.html>
More information about the mesa-dev
mailing list