Henri Verbeet : wined3d: Remove a redundant initialization of cfgs in CheckDepthStencilCapability ( LLVM/Clang).
Module: wine Branch: master Commit: 937ceda47f5a9ab3acd04c5b9fbee3ac740d5ad7 URL: http://source.winehq.org/git/wine.git/?a=commit;h=937ceda47f5a9ab3acd04c5b9f... Author: Henri Verbeet <hverbeet(a)codeweavers.com> Date: Wed Oct 8 16:37:00 2008 +0200 wined3d: Remove a redundant initialization of cfgs in CheckDepthStencilCapability (LLVM/Clang). --- dlls/wined3d/directx.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/dlls/wined3d/directx.c b/dlls/wined3d/directx.c index fd0d290..5fa091e 100644 --- a/dlls/wined3d/directx.c +++ b/dlls/wined3d/directx.c @@ -2005,7 +2005,6 @@ static BOOL CheckBumpMapCapability(UINT Adapter, WINED3DDEVTYPE DeviceType, WINE static BOOL CheckDepthStencilCapability(UINT Adapter, WINED3DFORMAT DisplayFormat, WINED3DFORMAT DepthStencilFormat) { int it=0; - WineD3D_PixelFormat *cfgs = Adapters[Adapter].cfgs; const GlPixelFormatDesc *glDesc; const StaticPixelFormatDesc *desc = getFormatDescEntry(DepthStencilFormat, &GLINFO_LOCATION, &glDesc); @@ -2018,10 +2017,10 @@ static BOOL CheckDepthStencilCapability(UINT Adapter, WINED3DFORMAT DisplayForma return FALSE; /* Walk through all WGL pixel formats to find a match */ - cfgs = Adapters[Adapter].cfgs; for (it = 0; it < Adapters[Adapter].nCfgs; ++it) { - if (IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(&cfgs[it], DisplayFormat)) { - if (IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(&cfgs[it], DepthStencilFormat)) { + WineD3D_PixelFormat *cfg = &Adapters[Adapter].cfgs[it]; + if (IWineD3DImpl_IsPixelFormatCompatibleWithRenderFmt(cfg, DisplayFormat)) { + if (IWineD3DImpl_IsPixelFormatCompatibleWithDepthFmt(cfg, DepthStencilFormat)) { return TRUE; } }
participants (1)
-
Alexandre Julliard