wined3d: Properly handle back-buffers in context_get_rt_size().

Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Henri Verbeet 2017-03-22 23:11:27 +01:00 committed by Alexandre Julliard
parent bedb40e5af
commit 4f027e627e
1 changed files with 1 additions and 1 deletions

View File

@ -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;