[Bug 106123] draw does not work in a simple example

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Apr 18 10:45:17 UTC 2018


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

Denis <denys.kostin at globallogic.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |NEEDINFO

--- Comment #1 from Denis <denys.kostin at globallogic.com> ---
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??

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are the QA Contact for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20180418/a8fa70ab/attachment.html>


More information about the intel-3d-bugs mailing list