mirror of
git://source.winehq.org/git/wine.git
synced 2024-07-27 21:58:15 +00:00
d3dx9: Only do direct copies of full blocks for compressed formats.
Signed-off-by: Connor McAdams <cmcadams@codeweavers.com>
This commit is contained in:
parent
7ebd102886
commit
e6f79a8059
|
@ -1969,8 +1969,8 @@ static HRESULT d3dx_load_image_from_memory(void *dst_memory, uint32_t dst_row_pi
|
|||
|
||||
/* Everything matches, simply copy the pixels. */
|
||||
if (src_desc->format == dst_desc->format
|
||||
&& dst_size.width == src_size.width
|
||||
&& dst_size.height == src_size.height
|
||||
&& (dst_size.width == src_size.width && !(dst_size.width % dst_desc->block_width))
|
||||
&& (dst_size.height == src_size.height && !(dst_size.height % dst_desc->block_height))
|
||||
&& color_key == 0
|
||||
&& !(src_rect->left & (src_desc->block_width - 1))
|
||||
&& !(src_rect->top & (src_desc->block_height - 1))
|
||||
|
|
Loading…
Reference in a new issue