[WINED3D] Map D3DFMT_L16, D3DFMT_A16B16G16R16 to OpenGL formats

Ivan Gyurdiev ivg2 at cornell.edu
Mon Apr 10 04:13:17 CDT 2006


Map:

D3DFMT_L16 -> GL_LUMINANCE16_EXT
D3DFMT_A16B16G16R16 -> GL_RGBA16_EXT
as Raphael suggested.

Also increase the returned Bpp for unknown and unhandled formats from 4 
to 8 bytes - this part fixes segfault in the F.E.A.R demo. It now shows 
some flashy graphics before it dies again :)



-------------- next part --------------
A non-text attachment was scrubbed...
Name: wine.tex_formats.diff
Type: text/x-patch
Size: 4069 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20060410/a2125488/wine.tex_formats.diff


More information about the wine-patches mailing list