From 84e7a04be27330547e61a16691e23e8a2be26aab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B3zef=20Kucia?= Date: Fri, 7 Apr 2017 14:45:12 +0200 Subject: [PATCH] wined3d: Simply use view size as drawable size for resources other than 2d textures. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Józef Kucia Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/view.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dlls/wined3d/view.c b/dlls/wined3d/view.c index 7e8d1927d62..22fd7de12f5 100644 --- a/dlls/wined3d/view.c +++ b/dlls/wined3d/view.c @@ -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; }