From 4f027e627e9a790639116ec7a023d3f0e4f01d17 Mon Sep 17 00:00:00 2001 From: Henri Verbeet Date: Wed, 22 Mar 2017 23:11:27 +0100 Subject: [PATCH] wined3d: Properly handle back-buffers in context_get_rt_size(). Signed-off-by: Henri Verbeet Signed-off-by: Alexandre Julliard --- dlls/wined3d/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c index c1803a4de11..426d697c22e 100644 --- a/dlls/wined3d/context.c +++ b/dlls/wined3d/context.c @@ -2142,7 +2142,7 @@ static void context_get_rt_size(const struct wined3d_context *context, SIZE *siz const struct wined3d_texture *rt = context->current_rt.texture; unsigned int level; - if (rt->swapchain && rt->swapchain->front_buffer == rt) + if (rt->swapchain) { RECT window_size;