--- Karsten Elfenbein kelfe@gmx.de 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->lockedRect.top) - 1, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV, This->resource.allocatedMemory); when unlocking the back buffer
Thanks, Oliver.
Changelog:
- added A2R10G10B10 and D3DFMT_D24FS8 modes
___________________________________________________________ Yahoo! Messenger - NEW crystal clear PC to PC calling worldwide with voicemail http://uk.messenger.yahoo.com
Added A2R10G10B10 and D3DFMT_D24FS8 modes to all other functions.
Karsten
-----Ursprüngliche Nachricht----- Von: wine-patches-bounces@winehq.org [mailto:wine-patches-bounces@winehq.org] Im Auftrag von Oliver Stieber Gesendet: Samstag, 3. September 2005 22:15 An: wine-devel@winehq.org; wine-patches@winehq.org Betreff: ***SPAM*** Re: Wined3d: added A2R10G10B10 and D3DFMT_D24FS8
--- Karsten Elfenbein kelfe@gmx.de 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->lockedRect.top) - 1, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV, This->resource.allocatedMemory); when unlocking the back buffer
Thanks, Oliver.
Changelog:
- added A2R10G10B10 and D3DFMT_D24FS8 modes
--- Karsten Elfenbein kelfe@gmx.de wrote:
That looks fine, thanks.
Added A2R10G10B10 and D3DFMT_D24FS8 modes to all other functions.
Karsten
-----Ursprüngliche Nachricht----- Von: wine-patches-bounces@winehq.org [mailto:wine-patches-bounces@winehq.org] Im Auftrag von Oliver Stieber Gesendet: Samstag, 3. September 2005 22:15 An: wine-devel@winehq.org; wine-patches@winehq.org Betreff: ***SPAM*** Re: Wined3d: added A2R10G10B10 and D3DFMT_D24FS8
--- Karsten Elfenbein kelfe@gmx.de 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->lockedRect.top) - 1, GL_BGRA, GL_UNSIGNED_INT_2_10_10_10_REV, This->resource.allocatedMemory); when unlocking the back buffer
Thanks, Oliver.
Changelog:
- added A2R10G10B10 and D3DFMT_D24FS8 modes
___________________________________________________________ To help you stay safe and secure online, we've developed the all new Yahoo! Security Centre. http://uk.security.yahoo.com