diff --git a/dlls/d3d10core/tests/device.c b/dlls/d3d10core/tests/device.c index b0907ba6449..57a61c4ebec 100644 --- a/dlls/d3d10core/tests/device.c +++ b/dlls/d3d10core/tests/device.c @@ -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) diff --git a/dlls/d3d10core/texture.c b/dlls/d3d10core/texture.c index 718d0198dac..41bd80f5fcb 100644 --- a/dlls/d3d10core/texture.c +++ b/dlls/d3d10core/texture.c @@ -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; }