Commit 57074556 authored by Jacek Caban's avatar Jacek Caban Committed by Alexandre Julliard

d3d10core: Use proper helpers for iface calls.

parent cbf155af
...@@ -367,7 +367,7 @@ float4 main(const float4 color : COLOR) : SV_TARGET ...@@ -367,7 +367,7 @@ float4 main(const float4 color : COLOR) : SV_TARGET
hr = ID3D10Device_CreatePixelShader(device, ps_4_0, sizeof(ps_4_0), &ps); hr = ID3D10Device_CreatePixelShader(device, ps_4_0, sizeof(ps_4_0), &ps);
ok(SUCCEEDED(hr), "Failed to create SM4 vertex shader, hr %#x\n", hr); ok(SUCCEEDED(hr), "Failed to create SM4 vertex shader, hr %#x\n", hr);
if (ps) if (ps)
ID3D10VertexShader_Release(ps); ID3D10PixelShader_Release(ps);
} }
START_TEST(device) START_TEST(device)
......
...@@ -50,7 +50,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture2d_QueryInterface(ID3D10Texture2D ...@@ -50,7 +50,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture2d_QueryInterface(ID3D10Texture2D
if (This->dxgi_surface) if (This->dxgi_surface)
{ {
TRACE("Forwarding to dxgi surface\n"); TRACE("Forwarding to dxgi surface\n");
return IDXGISurface_QueryInterface(This->dxgi_surface, riid, object); return IUnknown_QueryInterface(This->dxgi_surface, riid, object);
} }
WARN("%s not implemented, returning E_NOINTERFACE\n", debugstr_guid(riid)); WARN("%s not implemented, returning E_NOINTERFACE\n", debugstr_guid(riid));
...@@ -76,7 +76,7 @@ static void STDMETHODCALLTYPE d3d10_texture2d_wined3d_object_released(void *pare ...@@ -76,7 +76,7 @@ static void STDMETHODCALLTYPE d3d10_texture2d_wined3d_object_released(void *pare
{ {
struct d3d10_texture2d *This = parent; struct d3d10_texture2d *This = parent;
if (This->dxgi_surface) IDXGISurface_Release(This->dxgi_surface); if (This->dxgi_surface) IUnknown_Release(This->dxgi_surface);
HeapFree(GetProcessHeap(), 0, This); HeapFree(GetProcessHeap(), 0, This);
} }
...@@ -270,7 +270,7 @@ HRESULT d3d10_texture2d_init(struct d3d10_texture2d *texture, struct d3d10_devic ...@@ -270,7 +270,7 @@ HRESULT d3d10_texture2d_init(struct d3d10_texture2d *texture, struct d3d10_devic
{ {
WARN("Failed to create wined3d texture, hr %#x.\n", hr); WARN("Failed to create wined3d texture, hr %#x.\n", hr);
if (texture->dxgi_surface) if (texture->dxgi_surface)
IDXGISurface_Release(texture->dxgi_surface); IUnknown_Release(texture->dxgi_surface);
return hr; return hr;
} }
......
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