Commit 3447f172 authored by Christian Costa's avatar Christian Costa Committed by Alexandre Julliard

d3drm: Attach mesh to the parent frame if any.

parent 6d47694b
......@@ -1298,7 +1298,7 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
{
LPDIRECT3DRMMESHBUILDER3 meshbuilder;
FIXME("Load mesh data and notify application\n");
TRACE("Load mesh data and notify application\n");
hr = IDirect3DRM3_CreateMeshBuilder(iface, &meshbuilder);
if (SUCCEEDED(hr))
......@@ -1312,7 +1312,9 @@ HRESULT load_data(IDirect3DRM3* iface, LPDIRECTXFILEDATA data_object, LPIID* GUI
if (SUCCEEDED(hr))
{
/* Only top level objects are notified */
if (!parent_frame)
if (parent_frame)
IDirect3DRMFrame3_AddVisual(parent_frame, (IUnknown*)meshbuilder);
else
LoadProc(object, GUIDs[i], ArgLP);
}
IDirect3DRMObject_Release(object);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment