d3d10core: Use proper helpers for iface calls.

This commit is contained in:
Jacek Caban 2012-08-28 11:10:45 +02:00 committed by Alexandre Julliard
parent cbf155afe1
commit 57074556d2
2 changed files with 4 additions and 4 deletions

View File

@ -367,7 +367,7 @@ float4 main(const float4 color : COLOR) : SV_TARGET
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);
if (ps)
ID3D10VertexShader_Release(ps);
ID3D10PixelShader_Release(ps);
}
START_TEST(device)

View File

@ -50,7 +50,7 @@ static HRESULT STDMETHODCALLTYPE d3d10_texture2d_QueryInterface(ID3D10Texture2D
if (This->dxgi_surface)
{
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));
@ -76,7 +76,7 @@ static void STDMETHODCALLTYPE d3d10_texture2d_wined3d_object_released(void *pare
{
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);
}
@ -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);
if (texture->dxgi_surface)
IDXGISurface_Release(texture->dxgi_surface);
IUnknown_Release(texture->dxgi_surface);
return hr;
}