xpra icon
Bug tracker and wiki

Changes between Initial Version and Version 1 of Ticket #2828, comment 3


Ignore:
Timestamp:
07/11/20 05:32:26 (2 months ago)
Author:
Antoine Martin
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #2828, comment 3

    initial v1  
    11The official OpenGL documentation on [https://www.khronos.org/opengl/wiki/Pixel_Transfer] says [https://www.khronos.org/registry/OpenGL-Refpages/gl4/html/glPixelStore.xhtml glPixelStore]: ''GL_UNPACK_SWAP_BYTES has no effect on the memory order of components within a pixel, only on the order of bytes within components or indices''.
    22It wasn't clear to me that this would do the byteswap for `GL_UNSIGNED_SHORT`, but it does. Problem solved!
    3 r26948 replaces the slow byte-swapping code with this.
     3r26948 replaces the slow byte-swapping code with `glPixelStorei(GL_UNPACK_SWAP_BYTES, True)` for `BGR48` only.