[PATCH 1/5] wined3d: Don't print FIXMEs for misaligned surface maps.
Henri Verbeet
hverbeet at codeweavers.com
Tue Nov 8 13:48:55 CST 2011
---
dlls/wined3d/surface.c | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 5d32512..06a36b3 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3719,15 +3719,11 @@ HRESULT CDECL wined3d_surface_map(struct wined3d_surface *surface,
if ((rect->left & width_mask) || (rect->right & width_mask)
|| (rect->top & height_mask) || (rect->bottom & height_mask))
{
- switch (surface->resource.pool)
- {
- case WINED3DPOOL_DEFAULT:
- WARN("Partial block lock with WINED3DPOOL_DEFAULT\n");
- return WINED3DERR_INVALIDCALL;
+ WARN("Map rect %s is misaligned for %ux%u blocks.\n",
+ wine_dbgstr_rect(rect), format->block_width, format->block_height);
- default:
- FIXME("Partial block lock with %s\n", debug_d3dpool(surface->resource.pool));
- }
+ if (surface->resource.pool == WINED3DPOOL_DEFAULT)
+ return WINED3DERR_INVALIDCALL;
}
}
--
1.7.3.4
More information about the wine-patches
mailing list