Wined3d: added A2R10G10B10 and D3DFMT_D24FS8

Oliver Stieber oliver_stieber at
Sat Sep 3 15:15:14 CDT 2005

--- Karsten Elfenbein <kelfe at> wrote:
Can you put together a patch to add A2R10G10B10 and D3DFMT_D24FS8  to utils.c as well please.

D3DFmt2GLIntFmt needs to return GL_RGBA, D3DFmt2GLFmt needs to return GL_RGBA, D3DFmt2GLType needs
to return GL_UNSIGNED_INT_2_10_10_10_REV, D3DFmtGetBpp needs to return 4,
 D3DFmtMakeGlCfg needs to     
        PUSH2(GLX_ALPHA_SIZE,   2);        
        PUSH2(GLX_RED_SIZE,     10);
        PUSH2(GLX_GREEN_SIZE,   10);
        PUSH2(GLX_BLUE_SIZE,    10);

Also in surface.c IWineD3DSurfaceImpl_UnlockRect needs to use                
 glDrawPixels(This->lockedRect.right - This->lockedRect.left, (This->lockedRect.bottom -
This-> - 1, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV,
when unlocking the back buffer

> Changelog:
> * added A2R10G10B10 and D3DFMT_D24FS8 modes
> > 

Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail

More information about the wine-devel mailing list