[Mesa-dev] [Bug 78700] New: Debug warnings should be generated when BindAttribLocation isn't followed by a re-link

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed May 14 08:12:49 PDT 2014


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

          Priority: medium
            Bug ID: 78700
          Assignee: mesa-dev at lists.freedesktop.org
           Summary: Debug warnings should be generated when
                    BindAttribLocation isn't followed by a re-link
          Severity: normal
    Classification: Unclassified
                OS: All
          Reporter: idr at freedesktop.org
          Hardware: All
            Status: NEW
           Version: git
         Component: Mesa core
           Product: Mesa

We have seen applications in the past that do something like:

    glCompileShader(...);
    glAttachShader(...);
    glLinkProgram(...);

    glBindAttribLocation(...);

    draw(...);

However, the glBindAttribLocation doesn't take affect until glLinkProgram is
called again.

With separate shader objects, you can't generally re-link the program because
glCreateShaderProgramv implicitly deletes the shader after linking.

     glCreateShaderProgramv(...);
     glBindAttribLocation(...);   // can probably never do anything

Both of these cases should get warnings via ARB_debug callbacks.

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


More information about the mesa-dev mailing list