wined3d: Read from stateBlock instead of updateStateBlock in wined3d_device_get_material().
This commit is contained in:
parent
8ef3a14226
commit
7638e550b9
|
@ -2098,7 +2098,7 @@ void CDECL wined3d_device_get_material(const struct wined3d_device *device, stru
|
|||
{
|
||||
TRACE("device %p, material %p.\n", device, material);
|
||||
|
||||
*material = device->updateStateBlock->state.material;
|
||||
*material = device->stateBlock->state.material;
|
||||
|
||||
TRACE("diffuse {%.8e, %.8e, %.8e, %.8e}\n",
|
||||
material->diffuse.r, material->diffuse.g,
|
||||
|
|
Loading…
Reference in New Issue