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@lists.freedesktop.org
          Reporter: laurent.ren...@int.com
        QA Contact: mesa-dev@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.
_______________________________________________
mesa-dev mailing list
mesa-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Reply via email to