On 30 August 2013 00:19, Stefan Dösinger <ste...@codeweavers.com> wrote:
> + if (format->flags & WINED3DFMT_FLAG_BLOCKS)
> + {
> + UINT width_mask = format->block_width - 1;
> + UINT height_mask = format->block_height - 1;
> + if (desc->width & width_mask || desc->height & height_mask)
> + {
> + WARN("(%p) : Texture cannot be created - width or height not
> block size aligned.\n", texture);
> + return WINED3DERR_INVALIDCALL;
> + }
> + }
> +
Is this different from surfaces? IIRC surfaces are padded up to the
next multiple of the block size, although I may have that wrong. Not a
fan of the "(%p) : " trace formatting.