Commit 430bac5f authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Only bother checking block alignment for compressed surfaces in…

wined3d: Only bother checking block alignment for compressed surfaces in wined3d_device_update_surface().
parent 17eb3e2c
...@@ -4810,8 +4810,9 @@ HRESULT CDECL wined3d_device_update_surface(struct wined3d_device *device, ...@@ -4810,8 +4810,9 @@ HRESULT CDECL wined3d_device_update_surface(struct wined3d_device *device,
} }
/* NPOT block sizes would be silly. */ /* NPOT block sizes would be silly. */
if ((update_w & (src_format->block_width - 1) || update_h & (src_format->block_height - 1)) if ((src_format->flags & WINED3DFMT_FLAG_COMPRESSED)
&& (src_w != update_w || dst_w != update_w || src_h != update_h || dst_h != update_h)) && ((update_w & (src_format->block_width - 1) || update_h & (src_format->block_height - 1))
&& (src_w != update_w || dst_w != update_w || src_h != update_h || dst_h != update_h)))
{ {
WARN("Update rect not block-aligned.\n"); WARN("Update rect not block-aligned.\n");
return WINED3DERR_INVALIDCALL; return WINED3DERR_INVALIDCALL;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment