Zebediah Figura : d3d8: Retrieve the material from the primary stateblock.
Module: wine Branch: master Commit: b0b8fb9949205055ab7c91c2249b7c6bf33e6ff5 URL: https://source.winehq.org/git/wine.git/?a=commit;h=b0b8fb9949205055ab7c91c22... Author: Zebediah Figura <z.figura12(a)gmail.com> Date: Mon Feb 24 16:11:39 2020 -0600 d3d8: Retrieve the material from the primary stateblock. Signed-off-by: Zebediah Figura <z.figura12(a)gmail.com> Signed-off-by: Henri Verbeet <hverbeet(a)codeweavers.com> Signed-off-by: Alexandre Julliard <julliard(a)winehq.org> --- dlls/d3d8/device.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index aaf5b62e86..8fe43c0cca 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -1742,7 +1742,7 @@ static HRESULT WINAPI d3d8_device_GetMaterial(IDirect3DDevice8 *iface, D3DMATERI /* Note: D3DMATERIAL8 is compatible with struct wined3d_material. */ wined3d_mutex_lock(); - wined3d_device_get_material(device->wined3d_device, (struct wined3d_material *)material); + memcpy(material, &wined3d_stateblock_get_state(device->state)->material, sizeof(*material)); wined3d_mutex_unlock(); return D3D_OK;
participants (1)
-
Alexandre Julliard