Commit e8ec01ad authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Use renderbuffers if the resource type is RB.

parent 1a2d520e
...@@ -402,6 +402,8 @@ void wined3d_resource_update_draw_binding(struct wined3d_resource *resource) ...@@ -402,6 +402,8 @@ void wined3d_resource_update_draw_binding(struct wined3d_resource *resource)
resource->draw_binding = WINED3D_LOCATION_DRAWABLE; resource->draw_binding = WINED3D_LOCATION_DRAWABLE;
else if (resource->multisample_type) else if (resource->multisample_type)
resource->draw_binding = WINED3D_LOCATION_RB_MULTISAMPLE; 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 else
resource->draw_binding = WINED3D_LOCATION_TEXTURE_RGB; resource->draw_binding = WINED3D_LOCATION_TEXTURE_RGB;
} }
...@@ -3716,6 +3716,9 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co ...@@ -3716,6 +3716,9 @@ void surface_load_ds_location(struct wined3d_surface *surface, struct wined3d_co
case WINED3D_LOCATION_RB_MULTISAMPLE: case WINED3D_LOCATION_RB_MULTISAMPLE:
surface_prepare_rb(surface, gl_info, TRUE); surface_prepare_rb(surface, gl_info, TRUE);
break; break;
case WINED3D_LOCATION_RB_RESOLVED:
surface_prepare_rb(surface, gl_info, FALSE);
break;
case WINED3D_LOCATION_DRAWABLE: case WINED3D_LOCATION_DRAWABLE:
/* Nothing to do */ /* Nothing to do */
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment