wined3d: Map D3DFMT_L16, D3DFMT_A16B16G16R16 to OpenGL formats.
authorIvan Gyurdiev <ivg2@cornell.edu>
Mon, 10 Apr 2006 09:13:17 +0000 (05:13 -0400)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 10 Apr 2006 10:23:38 +0000 (12:23 +0200)
commit5c12c043df3798cfeb42851170664b935b2e6881
tree7bc18fd75929fe5248966ad853ecaabcab8bc5c1
parent09a1a3fd7cd3aeb9f24f2fa1cc919accc8fb59cc
wined3d: Map D3DFMT_L16, D3DFMT_A16B16G16R16 to OpenGL formats.

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 :)
dlls/wined3d/utils.c