[PATCH 3/6] d3drm: Implement IDirect3DRM*_CreateTexture. (v4)

Henri Verbeet hverbeet at gmail.com
Wed May 11 10:43:37 CDT 2016


On 11 May 2016 at 16:43, Aaryaman Vasishta <jem456.vasishta at gmail.com> wrote:
> @@ -1152,15 +1156,21 @@ static HRESULT WINAPI d3drm3_CreateAnimationSet(IDirect3DRM3 *iface, IDirect3DRM
>  static HRESULT WINAPI d3drm3_CreateTexture(IDirect3DRM3 *iface,
>          D3DRMIMAGE *image, IDirect3DRMTexture3 **texture)
>  {
> -    struct d3drm_texture *object;
>      HRESULT hr;
>
> -    FIXME("iface %p, image %p, texture %p partial stub.\n", iface, image, texture);
> +    TRACE("iface %p, image %p, texture %p.\n", iface, image, texture);
>
> -    if (FAILED(hr = d3drm_texture_create(&object)))
> +    if (!d3drm_validate_image(image))
> +        return D3DRMERR_BADVALUE;
Why do you need the d3drm_validate_image() call? Purely for the error code?



More information about the wine-devel mailing list