<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body><span class="vcard"><a class="email" href="mailto:denys.kostin@globallogic.com" title="Denis <denys.kostin@globallogic.com>"> <span class="fn">Denis</span></a>
</span> changed
          <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - draw does not work in a simple example"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106123">bug 106123</a>
          <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Status</td>
           <td>NEW
           </td>
           <td>NEEDINFO
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - draw does not work in a simple example"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106123#c1">Comment # 1</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - draw does not work in a simple example"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=106123">bug 106123</a>
              from <span class="vcard"><a class="email" href="mailto:denys.kostin@globallogic.com" title="Denis <denys.kostin@globallogic.com>"> <span class="fn">Denis</span></a>
</span></b>
        <pre>Your variant:

GLubyte pixels_4[128 * 128 * 4];
  glReadPixels(0, 0, 128, 128, GL_RGBA, GL_UNSIGNED_BYTE, &pixels_4[0]);
  FILE *outputFile_4 = fopen("result_4.rgba", "a");
  fprintf(outputFile_4, "%s\n", (char *)(pixels_4));
  fclose(outputFile_4);


Proposed variant:

GLubyte pixels_4[128 * 128 * 4];
  glReadPixels(0, 0, 128, 128, GL_RGBA, GL_UNSIGNED_BYTE, &pixels_4[0]);
  FILE *outputFile_4 = fopen("result_4.rgba", "a");
  //fprintf(outputFile_4, "%s\n", (char *)(pixels_4));
  fwrite( pixels_4, sizeof pixels_4[0], sizeof(pixels_4)/sizeof(pixels_4[0]),
outputFile_4 );
  fclose(outputFile_4);


In all of these files after changing the code (as I pasted higher) - was
written repeated values of 00 00 00 FF. Each file has the same size - 65536 B.
In your variant each time should contain only 0A "\n" because first byte of
pixels_N contains 00.

Are you sure that output for Nvidia had correct (expected) values??</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>