Update 0003-d3d11-Implement-d3d10_device_GenerateMips.patch

Allows the patch to be applied
This commit is contained in:
Brandon Amaro 2018-02-18 15:52:21 -08:00 committed by gloriouseggroll
parent bfb30ebb53
commit 8823b6c0d0

View File

@ -11,25 +11,25 @@ diff --git a/dlls/d3d11/device.c b/dlls/d3d11/device.c
index 22adf361feb..d389c2625a0 100644
--- a/dlls/d3d11/device.c
+++ b/dlls/d3d11/device.c
@@ -7305,7 +7305,17 @@ static void STDMETHODCALLTYPE d3d10_device_ClearDepthStencilView(ID3D10Device1 *
@@ -7550,12 +7550,16 @@ static void STDMETHODCALLTYPE d3d10_devi
static void STDMETHODCALLTYPE d3d10_device_GenerateMips(ID3D10Device1 *iface,
ID3D10ShaderResourceView *shader_resource_view)
ID3D10ShaderResourceView *view)
{
- FIXME("iface %p, shader_resource_view %p stub!\n", iface, shader_resource_view);
- struct d3d_shader_resource_view *srv = unsafe_impl_from_ID3D10ShaderResourceView(view);
+ struct d3d_device *device = impl_from_ID3D10Device(iface);
+ struct d3d_shader_resource_view *view = unsafe_impl_from_ID3D10ShaderResourceView(shader_resource_view);
+
- TRACE("iface %p, view %p.\n", iface, view);
+ TRACE("iface %p, shader_resource_view %p.\n", iface, shader_resource_view);
+
+ if (!view)
+ return;
+
+ wined3d_mutex_lock();
wined3d_mutex_lock();
- wined3d_shader_resource_view_generate_mipmaps(srv->wined3d_view);
+ wined3d_device_generate_mips_view(device->wined3d_device, view->wined3d_view);
+ wined3d_mutex_unlock();
wined3d_mutex_unlock();
}
static void STDMETHODCALLTYPE d3d10_device_ResolveSubresource(ID3D10Device1 *iface,
--
2.14.1