wined3d: Simply use view size as drawable size for resources other than 2d textures.

Signed-off-by: Józef Kucia <jkucia@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Józef Kucia 2017-04-07 14:45:12 +02:00 committed by Alexandre Julliard
parent a727b74264
commit 84e7a04be2
1 changed files with 2 additions and 3 deletions

View File

@ -347,9 +347,8 @@ void wined3d_rendertarget_view_get_drawable_size(const struct wined3d_rendertarg
if (view->resource->type != WINED3D_RTYPE_TEXTURE_2D)
{
FIXME("Not implemented for %s resources.\n", debug_d3dresourcetype(view->resource->type));
*width = 0;
*height = 0;
*width = view->width;
*height = view->height;
return;
}