On 4/10/06, Ivan Gyurdiev ivg2@cornell.edu wrote:
Map:
D3DFMT_L16 -> GL_LUMINANCE16_EXT D3DFMT_A16B16G16R16 -> GL_RGBA16_EXT as Raphael suggested.
Assuming this mapping is correct, you should also add these formats here:
http://source.winehq.org/git/?p=wine.git;a=blob;h=056c6fb76dd770c03655b7973f...
(though, that whole part of the file could use some work)
And, possibly here:
http://source.winehq.org/git/?p=wine.git;a=blob;h=f1868cdb3de16e9bb49f117061...
On Monday 10 April 2006 14:48, Jason Green wrote:
On 4/10/06, Ivan Gyurdiev ivg2@cornell.edu wrote:
Map:
D3DFMT_L16 -> GL_LUMINANCE16_EXT D3DFMT_A16B16G16R16 -> GL_RGBA16_EXT as Raphael suggested.
Assuming this mapping is correct, you should also add these formats here:
http://source.winehq.org/git/?p=wine.git;a=blob;h=056c6fb76dd770c03655b7973 f86113eb4284ffd;hb=eb834b39fa3c24b1531ca1f53a666040f3769009;f=dlls/wined3d/d irectx.c#l1122
I'm not sure than D3DFMT_A16B16G16R16 can be used a direct rendering format anyway you must add support for it on IWineD3DImpl_CheckDeviceFormat (line 1329) as it can be used as texture format (as L16)
(though, that whole part of the file could use some work)
And, possibly here:
http://source.winehq.org/git/?p=wine.git;a=blob;h=f1868cdb3de16e9bb49f11706 192648637b06bcd;hb=eb834b39fa3c24b1531ca1f53a666040f3769009;f=dlls/wined3d/s urface.c#l787
:)
Regards, Raphael