[Mesa-dev] [Bug 28585] New: glVertexAttrib doesn't seem to work on the GLES 2 driver

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Thu Jun 17 10:11:59 PDT 2010


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

           Summary: glVertexAttrib doesn't seem to work on the GLES 2
                    driver
           Product: Mesa
           Version: git
          Platform: Other
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: medium
         Component: Other
        AssignedTo: mesa-dev at lists.freedesktop.org
        ReportedBy: neil at linux.intel.com


Created an attachment (id=36339)
 --> (https://bugs.freedesktop.org/attachment.cgi?id=36339)
Test case

Using glVertexAttrib4f (or similar) to set a default vertex attrib value
doesn't seem to work on the Mesa GLES 2 driver. Using glVertexAttribPointer to
set an array value for the attribute for each vertex however seems to work
fine.

The attached test case tries to draw a red rectangle using a simple shader. The
color is specified using a vertex attribute. For me the rectangle comes out
black instead. If you change the #if 0 to #if 1 it will use
glVertexAttribPointer instead and it seems to work.

This is tested on my i965 with Mesa git 118a476. I can't test with any later
commit because Mesa just gives an assert for all programs after that (but I
guess that's a separate issue).

This causes Clutter to display text in black when the string is long enough to
use a VBO instead of going through the journal (such as in text-text).

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the mesa-dev mailing list