Commit 14399f61 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ddraw: Remove a useless material callback.

parent 06a44abc
......@@ -4457,7 +4457,6 @@ static HRESULT WINAPI d3d3_CreateMaterial(IDirect3D3 *iface, IDirect3DMaterial3
object->IDirect3DMaterial_vtbl = &IDirect3DMaterial_Vtbl;
object->ref = 1;
object->ddraw = ddraw_from_d3d3(iface);
object->activate = material_activate;
TRACE("Created material %p.\n", object);
*material = (IDirect3DMaterial3 *)object;
......
......@@ -550,8 +550,6 @@ struct IDirect3DMaterialImpl
D3DMATERIAL mat;
DWORD Handle;
void (*activate)(IDirect3DMaterialImpl* this);
};
/* VTables in various versions */
......
......@@ -3044,7 +3044,7 @@ IDirect3DDeviceImpl_3_SetLightState(IDirect3DDevice3 *iface,
}
TRACE(" activating material %p.\n", m);
m->activate(m);
material_activate(m);
This->material = Value;
}
......
......@@ -261,7 +261,7 @@ IDirect3DExecuteBufferImpl_Execute(IDirect3DExecuteBufferImpl *This,
if (!m)
ERR("Invalid material handle %#x.\n", ci->u2.dwArg[0]);
else
m->activate(m);
material_activate(m);
}
else if (ci->u1.dlstLightStateType == D3DLIGHTSTATE_COLORMODEL /* 3 */)
{
......
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