Stefan Dösinger : wined3d: Advertize postpixelshader blending for surfaces.
Module: wine Branch: master Commit: ffbc96b43c8888dc9a5c07370a8f1ebd09241f54 URL: http://source.winehq.org/git/wine.git/?a=commit;h=ffbc96b43c8888dc9a5c07370a... Author: Stefan Dösinger <stefan(a)codeweavers.com> Date: Thu Apr 3 16:14:57 2008 +0200 wined3d: Advertize postpixelshader blending for surfaces. --- dlls/wined3d/directx.c | 10 ++++++++++ 1 files changed, 10 insertions(+), 0 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index 8e14309..7450f3c 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2416,6 +2416,16 @@ static HRESULT WINAPI IWineD3DImpl_CheckDeviceFormat(IWineD3D *iface, UINT Adapt return WINED3DERR_NOTAVAILABLE; } } + + /* Check QUERY_POSTPIXELSHADER_BLENDING support */ + if(Usage & WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING) { + if(CheckPostPixelShaderBlendingCapability(Adapter, CheckFormat)) { + UsageCaps |= WINED3DUSAGE_QUERY_POSTPIXELSHADER_BLENDING; + } else { + TRACE_(d3d_caps)("[FAILED] - No query post pixelshader blending support\n"); + return WINED3DERR_NOTAVAILABLE; + } + } } else if(RType == WINED3DRTYPE_TEXTURE) { /* Texture allows: * - D3DUSAGE_AUTOGENMIPMAP
participants (1)
-
Alexandre Julliard