From: Eric Pouech eric.pouech@gmail.com
Signed-off-by: Eric Pouech eric.pouech@gmail.com --- dlls/d3d8/device.c | 4 ++-- dlls/d3d8/directx.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/d3d8/device.c b/dlls/d3d8/device.c index b0be9007ea2..de39cd5cd0a 100644 --- a/dlls/d3d8/device.c +++ b/dlls/d3d8/device.c @@ -3045,7 +3045,7 @@ static HRESULT WINAPI d3d8_device_GetVertexShaderFunction(IDirect3DDevice8 *ifac return D3D_OK; }
- hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, data_size); + hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, (unsigned int*)data_size); wined3d_mutex_unlock();
return hr; @@ -3298,7 +3298,7 @@ static HRESULT WINAPI d3d8_device_GetPixelShaderFunction(IDirect3DDevice8 *iface return D3DERR_INVALIDCALL; }
- hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, data_size); + hr = wined3d_shader_get_byte_code(shader_impl->wined3d_shader, data, (unsigned int*)data_size); wined3d_mutex_unlock();
return hr; diff --git a/dlls/d3d8/directx.c b/dlls/d3d8/directx.c index 365a99216aa..3c7b174342a 100644 --- a/dlls/d3d8/directx.c +++ b/dlls/d3d8/directx.c @@ -299,7 +299,7 @@ static HRESULT WINAPI d3d8_CheckDeviceFormat(IDirect3D8 *iface, UINT adapter, D3 wined3d_adapter = wined3d_output_get_adapter(d3d8->wined3d_outputs[output_idx]); if (format == D3DFMT_RESZ && resource_type == D3DRTYPE_SURFACE && usage == D3DUSAGE_RENDERTARGET) { - DWORD levels; + unsigned int levels;
hr = wined3d_check_device_multisample_type(wined3d_adapter, wined3d_device_type_from_d3d(device_type), WINED3DFMT_D24_UNORM_S8_UINT, FALSE, WINED3D_MULTISAMPLE_NON_MASKABLE, &levels);