[v3 signed 3/6] wined3d: introduce new wined3d_texture_{get, release}_dc functions

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


On 22 October 2015 at 12:01, Riccardo Bortolato <rikyz619 at gmail.com> wrote:
> +HRESULT CDECL wined3d_texture_get_dc(struct wined3d_texture *texture, unsigned int sub_resource_idx, HDC *dc)
> +{
> +    struct wined3d_resource *sub_resource = wined3d_texture_get_sub_resource(texture, sub_resource_idx);
> +
> +    return wined3d_surface_getdc(surface_from_resource(sub_resource), dc);
> +}
I think this should be fairly obvious at this point, but you're
missing traces and you need to validate the sub-resource type.



More information about the wine-devel mailing list