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

Alexandre Julliard julliard at winehq.org
Thu Mar 23 15:34:55 CDT 2017


Module: wine
Branch: master
Commit: 4f027e627e9a790639116ec7a023d3f0e4f01d17
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f027e627e9a790639116ec7a023d3f0e4f01d17

Author: Henri Verbeet <hverbeet at codeweavers.com>
Date:   Wed Mar 22 23:11:27 2017 +0100

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

Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 c1803a4..426d697 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;
 




More information about the wine-cvs mailing list