<div dir="ltr"><div><span class="gmail-m_-6728784880225747264gmail-im" style="font-size:12.8px">Hi Józef,</span></div><div><span class="gmail-m_-6728784880225747264gmail-im" style="font-size:12.8px">sorry for responding here, but I didn't manage to send the corrections in response to your previous mail. Thanks for your answer. The fragment of your previous mail is:</span></div><div><span class="gmail-m_-6728784880225747264gmail-im" style="font-size:12.8px"><br></span></div><span class="gmail-m_-6728784880225747264gmail-im" style="font-size:12.8px">"> -                               glUnmapBufferARB(GL_PIXEL_UNP<wbr>ACK_BUFFER_ARB);<br><br></span><span style="font-size:12.8px">This change is suspicious. The buffer was mapped to fill it with</span><br style="font-size:12.8px"><span style="font-size:12.8px">values above, and it can be safely unmapped at this point. Why do you</span><br style="font-size:12.8px"><span style="font-size:12.8px">need this change?</span><br style="font-size:12.8px"><span class="gmail-m_-6728784880225747264gmail-im" style="font-size:12.8px"><br>>                                 glPixelMapusv(GL_PIXEL_MAP_R_<wbr>TO_R, max, NULL);<br>>                                 glPixelMapusv(GL_PIXEL_MAP_G_<wbr>TO_G, max, NULL);<br>>                                 glPixelMapusv(GL_PIXEL_MAP_B_<wbr>TO_B, max, NULL);<br>> @@ -353,7 +352,7 @@ test_pixel_map(void)<br>>                         }<br>><br>>                         for (i = 0; i < max; i++) {<br>> -                               if (pbo_mem[i] != (255 - i)) {<br>> +                if (pbo_mem[i] != (max - i - 1)) {<br><br></span><span style="font-size:12.8px">Please use tabs instead of spaces. Otherwise, this seems to be a</span><br style="font-size:12.8px"><span style="font-size:12.8px">correct fix. I guess that the previous version of the test passes with</span><br style="font-size:12.8px"><span style="font-size:12.8px">some drivers probably because "max" is equal to 256."</span><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">When it comes to unmapping the buffer, </span><span style="font-size:12.8px">I don't know if I'm thinking right, but I read in OpenGL 4.5 spec that "Unmapping a mapped buffer object invalidates the pointer to its data store" and </span><span style="font-size:12.8px">glUnmapBuffer is using a pointer to GL_PIXEL_UNPACK_BUFFER.</span></div><div><span style="font-size:12.8px"><br></span></div><div><span style="font-size:12.8px">Regards,</span></div><div><span style="font-size:12.8px">Sandra</span></div><div><div><div class="gmail_extra"><br></div></div></div></div>