wined3d: Check the format block size before creating textures.
commitdf5a0976e9f28836489e8977122844fe053278b3
authorStefan Dösinger <stefan@codeweavers.com>
Thu, 5 Sep 2013 22:11:12 +0000 (6 00:11 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Fri, 6 Sep 2013 15:25:08 +0000 (6 17:25 +0200)
treed0b65c08657585713f0fb7ee81a619b5473190eb
parent80638b6d2f2e9a6e71df59e2780ded768219739a
wined3d: Check the format block size before creating textures.

Sizes of textures and stand-alone surfaces must be multiples of the
format's block size for DXTN formats. Since we create a texture for
everything (except in ddraw), this check also takes care of stand-alone
surfaces.
dlls/wined3d/texture.c
dlls/wined3d/utils.c
dlls/wined3d/wined3d_private.h