<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BindFragDataLocationIndexed on array fragment shader output."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96765#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - BindFragDataLocationIndexed on array fragment shader output."
   href="https://bugs.freedesktop.org/show_bug.cgi?id=96765">bug 96765</a>
              from <span class="vcard"><a class="email" href="mailto:imirkin@alum.mit.edu" title="Ilia Mirkin <imirkin@alum.mit.edu>"> <span class="fn">Ilia Mirkin</span></a>
</span></b>
        <pre>Are you sure that's correct? It's unclear from the spec that you should be able
to set arbitrary array indices' frag data locations/index values. Your test
case works with:

diff --git a/blend_func_extended_array/Main.cpp
b/blend_func_extended_array/Main.cpp
index 5718d0f..31217ee 100644
--- a/blend_func_extended_array/Main.cpp
+++ b/blend_func_extended_array/Main.cpp
@@ -29,8 +29,8 @@ class BlendFuncExtendedArray : public GLFWApp {
                    })";

             mProgram = CompileProgramStuffBeforeLink(vs, fs, [](GLuint
program){
-                glBindFragDataLocationIndexed(program, 0, 0, "FragData[0]");
-                glBindFragDataLocationIndexed(program, 0, 1,
"SecondaryFragData[0]");
+                glBindFragDataLocationIndexed(program, 0, 0, "FragData");
+                glBindFragDataLocationIndexed(program, 0, 1,
"SecondaryFragData");
             });
             std::cout << "Location of FragData, should be 0: " <<
glGetFragDataLocation(mProgram, "FragData[0]") << std::endl;
             std::cout << "Index of FragData, should be 0: " <<
glGetFragDataIndex(mProgram, "FragData[0]") << std::endl;


Note that it's still arrays in the glsl.

Does this work with other drivers? If so, which ones?</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
          <li>You are the QA Contact for the bug.</li>
      </ul>
    </body>
</html>