Re: [PATCH 2/4] d3drm: Implement IDirect3DRMTexture{2-3}_InitFromImage.
28 Apr
2016
28 Apr
'16
8:01 p.m.
On 28.04.2016 21:17, Aaryaman Vasishta wrote:
+ IDirect3DRM_AddRef(texture->d3drm); + + if (texture->image) + return D3DRMERR_BADOBJECT;
Doesn't this leak a reference in case of an error? ->initialized is not set to TRUE yet.
28 Apr
28 Apr
8:28 p.m.
New subject: [PATCH 2/4] d3drm: Implement IDirect3DRMTexture{2-3}_InitFromImage.
It does, but that's how Native behaves too. See the tests on this patch for more details. Cheers, Aaryaman On Friday, April 29, 2016, Sebastian Lackner <sebastian(a)fds-team.de> wrote:
On 28.04.2016 21:17, Aaryaman Vasishta wrote:
+ IDirect3DRM_AddRef(texture->d3drm); + + if (texture->image) + return D3DRMERR_BADOBJECT;
Doesn't this leak a reference in case of an error? ->initialized is not set to TRUE yet.
3517
Age (days ago)
3517
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aaryaman Vasishta -
Sebastian Lackner