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