27 Oct
2015
27 Oct
'15
2:40 p.m.
On 22 October 2015 at 12:01, Riccardo Bortolato <rikyz619(a)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.