[PATCH 1/2] wined3d: Allow blits from drawable location when loading renderbuffer locations.

Józef Kucia joseph.kucia at gmail.com
Wed Mar 7 13:30:02 CST 2018


From: Józef Kucia <jkucia at codeweavers.com>

Fixes a regression introduced by fb6b3cc872077e641cf68165e04012a95c94699d.

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 dlls/wined3d/surface.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 1824a9854ba6..0be72041cdd5 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -2348,6 +2348,10 @@ BOOL surface_load_renderbuffer(struct wined3d_surface *surface,
         src_location = WINED3D_LOCATION_RB_RESOLVED;
     else if (locations & WINED3D_LOCATION_TEXTURE_SRGB)
         src_location = WINED3D_LOCATION_TEXTURE_SRGB;
+    else if (locations & WINED3D_LOCATION_TEXTURE_RGB)
+        src_location = WINED3D_LOCATION_TEXTURE_RGB;
+    else if (locations & WINED3D_LOCATION_DRAWABLE)
+        src_location = WINED3D_LOCATION_DRAWABLE;
     else /* surface_blt_fbo will load the source location if necessary. */
         src_location = WINED3D_LOCATION_TEXTURE_RGB;
 
-- 
2.16.2




More information about the wine-devel mailing list