Re: [PATCH 2/4] d3drm: Implement IDirect3DRMTexture{2-3}_InitFromImage.
April 28, 2016
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.
April 2016
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.
3620
Age (days ago)
3620
Last active (days ago)
1 comments
2 participants
participants (2)
-
Aaryaman Vasishta -
Sebastian Lackner