<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 5:29 PM, Henri Verbeet <span dir="ltr"><<a href="mailto:hverbeet@gmail.com" target="_blank">hverbeet@gmail.com</a>></span> wrote:<span class=""></span><br><span class=""></span><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
>      FIXME("iface %p, image %p, texture %p partial stub.\n", iface, image, texture);<br>
> +    struct d3drm_texture *object;<br>
> +    HRESULT hr;<br>
</span>You mix declarations and code here. The compiler should have warned about that.<br></blockquote><div>clang didn't warn me about that. I should still fix it though. Does clang need -Wall for that warning to come? </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""></span><br></blockquote><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">
> +IDirect3DRMTexture *IDirect3DRMTexture_from_impl(struct d3drm_texture *texture)<br>
> +{<br>
> +    return &texture->IDirect3DRMTexture_iface;<br>
> +}<br>
> +<br>
> +IDirect3DRMTexture2 *IDirect3DRMTexture2_from_impl(struct d3drm_texture *texture)<br>
> +{<br>
> +    return &texture->IDirect3DRMTexture2_iface;<br>
> +}<br>
> +<br>
> +IDirect3DRMTexture3 *IDirect3DRMTexture3_from_impl(struct d3drm_texture *texture)<br>
> +{<br>
> +    return &texture->IDirect3DRMTexture3_iface;<br>
> +}<br>
</span>I don't think these are an improvement, I'd prefer them just written out.<br></blockquote><div>That's fine with me too, I kept them there for future use, but that doesn't seem to be the case. I should add these only if really required (like for devices).<br><br><br></div><div>I'm currently caught up in a college project presentation which ends this weekend, I'll submit all changes this weekend mostly.<br><br></div><div>Thanks for the review! Once this is done we can move on to the 2nd patch (of which i'll be sending another patch which will apply without the trailing whitespace, though more revision is required there anyways.)<br><br></div><div>Cheers,<br></div><div>Aaryaman<br></div></div><br></div></div>