[v3 signed 4/6] wined3d: introduce a new wined3d_rendertarget_view_create_from_sub_resource function

Henri Verbeet hverbeet at gmail.com
Tue Oct 27 09:40:56 CDT 2015

On 22 October 2015 at 12:01, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> +HRESULT __cdecl wined3d_rendertarget_view_create_from_sub_resource(struct wined3d_texture *texture,
Just use CDECL here. include/wine/wined3d.h should actually use CDECL
as well, but currently uses __cdecl for historic reasons.

> +    sub_resource = wined3d_texture_get_sub_resource(texture, sub_resource_idx);
> +    surface = surface_from_resource(sub_resource);
You can't assume the sub-resource is a surface here.

More information about the wine-devel mailing list