=?UTF-8?Q?Stefan=20D=C3=B6singer=20?=: wined3d: Use renderbuffers if the resource type is RB.

Alexandre Julliard julliard at wine.codeweavers.com
Tue Jun 9 08:25:53 CDT 2015


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

Author: Stefan Dösinger <stefan at codeweavers.com>
Date:   Tue Jun  9 09:28:06 2015 +0200

wined3d: Use renderbuffers if the resource type is RB.

---

 dlls/wined3d/resource.c | 2 ++
 dlls/wined3d/surface.c  | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/dlls/wined3d/resource.c b/dlls/wined3d/resource.c
index e9e586f..7818deb 100644
--- a/dlls/wined3d/resource.c
+++ b/dlls/wined3d/resource.c
@@ -402,6 +402,8 @@ void wined3d_resource_update_draw_binding(struct wined3d_resource *resource)
         resource->draw_binding = WINED3D_LOCATION_DRAWABLE;
     else if (resource->multisample_type)
         resource->draw_binding = WINED3D_LOCATION_RB_MULTISAMPLE;
+    else if (resource->gl_type == WINED3D_GL_RES_TYPE_RB)
+        resource->draw_binding = WINED3D_LOCATION_RB_RESOLVED;
     else
         resource->draw_binding = WINED3D_LOCATION_TEXTURE_RGB;
 }
diff --git a/dlls/wined3d/surface.c b/dlls/wined3d/surface.c
index 552a079..4df6ca8 100644
--- a/dlls/wined3d/surface.c
+++ b/dlls/wined3d/surface.c
@@ -3716,6 +3716,9 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
             case WINED3D_LOCATION_RB_MULTISAMPLE:
                 surface_prepare_rb(surface, gl_info, TRUE);
                 break;
+            case WINED3D_LOCATION_RB_RESOLVED:
+                surface_prepare_rb(surface, gl_info, FALSE);
+                break;
             case WINED3D_LOCATION_DRAWABLE:
                 /* Nothing to do */
                 break;




More information about the wine-cvs mailing list