mirror of
git://source.winehq.org/git/wine.git
synced 2024-11-05 18:01:34 +00:00
d3d9: Properly retrieve an interface pointer in IDirect3DDevice9Impl_GetVertexShader().
This commit is contained in:
parent
a495b7af48
commit
722e60ab2e
1 changed files with 3 additions and 1 deletions
|
@ -2339,6 +2339,7 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(IDirect3DDevice9Ex *i
|
|||
IDirect3DVertexShader9 **shader)
|
||||
{
|
||||
IDirect3DDevice9Impl *This = impl_from_IDirect3DDevice9Ex(iface);
|
||||
IDirect3DVertexShader9Impl *shader_impl;
|
||||
struct wined3d_shader *wined3d_shader;
|
||||
|
||||
TRACE("iface %p, shader %p.\n", iface, shader);
|
||||
|
@ -2347,7 +2348,8 @@ static HRESULT WINAPI IDirect3DDevice9Impl_GetVertexShader(IDirect3DDevice9Ex *i
|
|||
wined3d_shader = wined3d_device_get_vertex_shader(This->wined3d_device);
|
||||
if (wined3d_shader)
|
||||
{
|
||||
*shader = wined3d_shader_get_parent(wined3d_shader);
|
||||
shader_impl = wined3d_shader_get_parent(wined3d_shader);
|
||||
*shader = &shader_impl->IDirect3DVertexShader9_iface;
|
||||
IDirect3DVertexShader9_AddRef(*shader);
|
||||
wined3d_shader_decref(wined3d_shader);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue