On 10 August 2016 at 17:41, Aaryaman Vasishta <jem456.vasishta@gmail.com> wrote:
> + *scene = &frame->IDirect3DRMFrame3_iface; How about:
> +
> + while ((frame = frame->parent))
> + *scene = &frame->IDirect3DRMFrame3_iface;
> +
> + IDirect3DRMFrame3_AddRef(*scene);
while (frame->parent)
frame = frame->parent;
IDirect3DRMFrame3_AddRef(*scene = &frame->IDirect3DRMFrame3_ iface);