-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256
Hi,
I spotted a few style issues. Not sure if that's what Henri didn't like about it, or if he disagrees with the concept of the patch.
Am 2015-11-03 um 08:34 schrieb Riccardo Bortolato:
- if (!(sub_resource = wined3d_texture_get_sub_resource(src->wined3d_texture, src->sub_resource_idx)))
- {
WARN("no subresource found for texture %p sub_resource_idx %u\n", src->wined3d_texture, src->sub_resource_idx);
We usually have a period at the end of wined3d trace messages.
WARN("source %p must be SYSTEMMEM and dest %p must be DEFAULT, returning WINED3DERR_INVALIDCALL\n",
src_surface, dst_surface);
wined3d_mutex_unlock();
return D3DERR_INVALIDCALL;
The trace message mentions the wrong return value (WINED3DERR... vs D3DERR...).
- hr = wined3d_device_copy_sub_resource_region(device->wined3d_device,
wined3d_texture_get_resource(dst->wined3d_texture), dst->sub_resource_idx, dst_point ? dst_point->x : 0,
dst_point ? dst_point->y : 0, 0, wined3d_texture_get_resource(src->wined3d_texture),
src->sub_resource_idx, &src_box);
Indentation (8 spaces for the line continuations).
Stefan