IDirect3DRM_AddRef(texture->d3drm);
- if (texture->image)
return D3DRMERR_BADOBJECT;
Afair the ref leak here is intentional. If it is, I think it's worth adding a comment.
I just saw the other mails that Apple mail has been hiding from me... Still, a comment would be a good idea :-)