Use proper constant in dlls/d3d9/device.c
Gerald Pfeifer
gerald at pfeifer.com
Tue Jun 2 17:55:08 CDT 2009
pool is of type WINED3DPOOL, so it needs to be compared against
WINED3DPOOL_DEFAULT instead of D3DPOOL_DEFAULT (even though both
end up being 0).
Gerald
ChangeLog:
User WINED3DPOOL_DEFAULT instead of D3DPOOL_DEFAULT as appropriate.
diff --git a/dlls/d3d9/device.c b/dlls/d3d9/device.c
index 9508ff5..8f95ad1 100644
--- a/dlls/d3d9/device.c
+++ b/dlls/d3d9/device.c
@@ -2002,7 +2002,8 @@ static HRESULT STDMETHODCALLTYPE device_parent_CreateSurface(IWineD3DDeviceParen
"\tpool %#x, level %u, face %u, surface %p\n",
iface, superior, width, height, format, usage, pool, level, face, surface);
- if (pool == D3DPOOL_DEFAULT && !(usage & D3DUSAGE_DYNAMIC)) lockable = FALSE;
+ if (pool == WINED3DPOOL_DEFAULT && !(usage & D3DUSAGE_DYNAMIC))
+ lockable = FALSE;
hr = IDirect3DDevice9Impl_CreateSurface((IDirect3DDevice9Ex *)This, width, height,
d3dformat_from_wined3dformat(format), lockable, FALSE /* Discard */, level,
More information about the wine-patches
mailing list