wined3d: Reject height scaled repacked np2 textures.
This commit is contained in:
parent
6583379077
commit
2728e7b887
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue