Module: wine Branch: master Commit: 6383d5fee28fdd6a44303d86cd12713f0e2ce9fc URL: http://source.winehq.org/git/wine.git/?a=commit;h=6383d5fee28fdd6a44303d86cd...
Author: Gerald Pfeifer gerald@pfeifer.com Date: Wed Jun 10 17:09:42 2009 +0200
d3d9: Use correct constant types (WINED3DPOOL_DEFAULT instead of D3DPOOL_DEFAULT and WINED3DRTYPE_SURFACE instead of D3DRTYPE_SURFACE).
---
dlls/d3d9/device.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c index c711087..4eeb609 100644 --- a/dlls/d3d9/device.c +++ b/dlls/d3d9/device.c @@ -797,7 +797,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_ColorFill(LPDIRECT3DDEVICE9EX iface /* This method is only allowed with surfaces that are render targets, or offscreen plain surfaces * in D3DPOOL_DEFAULT */ - if(!(usage & WINED3DUSAGE_RENDERTARGET) && (pool != D3DPOOL_DEFAULT || restype != D3DRTYPE_SURFACE)) { + if(!(usage & WINED3DUSAGE_RENDERTARGET) && (pool != WINED3DPOOL_DEFAULT || restype != WINED3DRTYPE_SURFACE)) { LeaveCriticalSection(&d3d9_cs); WARN("Surface is not a render target, or not a stand-alone D3DPOOL_DEFAULT surface\n"); return D3DERR_INVALIDCALL;