wined3d: Reject height scaled repacked np2 textures.

This commit is contained in:
Stefan Dösinger 2014-02-12 12:24:25 +01:00 committed by Alexandre Julliard
parent 6583379077
commit 2728e7b887
1 changed files with 2 additions and 2 deletions

View File

@ -695,9 +695,9 @@ static HRESULT surface_private_setup(struct wined3d_surface *surface)
if (pow2Width > surface->resource.width || pow2Height > surface->resource.height)
{
/* TODO: Add support for non power two compressed textures. */
if (surface->resource.format->flags & WINED3DFMT_FLAG_COMPRESSED)
if (surface->resource.format->flags & (WINED3DFMT_FLAG_COMPRESSED | WINED3DFMT_FLAG_HEIGHT_SCALE))
{
FIXME("(%p) Compressed non-power-two textures are not supported w(%d) h(%d)\n",
FIXME("(%p) Compressed or height scaled non-power-two textures are not supported w(%d) h(%d)\n",
surface, surface->resource.width, surface->resource.height);
return WINED3DERR_NOTAVAILABLE;
}