wined3d: fix R8G8B8 texture upload

Frank Richter frank.richter at gmail.com
Sat May 27 21:06:27 CDT 2006


According to MSDN, the memory layout of a texture format can be
derived from the format identifier by interpreting the first component
going into the most significant bit(s), the last into the least
significant bit(s). For WINED3DFMT_R8G8B8 this translates that the
byte order in memory is actually BGR. Thus upload as GL_BGR, not
GL_RGB.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wined3d-rgbtexture.diff
Type: text/x-patch
Size: 710 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060528/a515b3f3/wined3d-rgbtexture.diff


More information about the wine-patches mailing list