[WINED3D] Map D3DFMT_L16, D3DFMT_A16B16G16R16 to OpenGL formats

Raphael fenix at club-internet.fr
Mon Apr 10 15:58:49 CDT 2006


On Monday 10 April 2006 14:48, Jason Green wrote:
> On 4/10/06, Ivan Gyurdiev <ivg2 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20060410/38d38945/attachment.pgp


More information about the wine-devel mailing list