d3d9: Retrieve the pixel shader from the primary stateblock.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
6acd71d17b
commit
7027e7779d
|
@ -3872,7 +3872,7 @@ static HRESULT WINAPI d3d9_device_GetPixelShader(IDirect3DDevice9Ex *iface, IDir
|
||||||
if (!shader) return D3DERR_INVALIDCALL;
|
if (!shader) return D3DERR_INVALIDCALL;
|
||||||
|
|
||||||
wined3d_mutex_lock();
|
wined3d_mutex_lock();
|
||||||
if ((wined3d_shader = wined3d_device_get_pixel_shader(device->wined3d_device)))
|
if ((wined3d_shader = wined3d_stateblock_get_state(device->state)->ps))
|
||||||
{
|
{
|
||||||
shader_impl = wined3d_shader_get_parent(wined3d_shader);
|
shader_impl = wined3d_shader_get_parent(wined3d_shader);
|
||||||
*shader = &shader_impl->IDirect3DPixelShader9_iface;
|
*shader = &shader_impl->IDirect3DPixelShader9_iface;
|
||||||
|
|
Loading…
Reference in New Issue