Commit e35a62c5 authored by Chip Davis's avatar Chip Davis Committed by Alexandre Julliard

d3d11: Introduce a function to convert a D3D feature level to a D3D10.1 feature level.

parent d378a1de
...@@ -5833,13 +5833,18 @@ static void STDMETHODCALLTYPE d3d10_device_GetTextFilterSize(ID3D10Device1 *ifac ...@@ -5833,13 +5833,18 @@ static void STDMETHODCALLTYPE d3d10_device_GetTextFilterSize(ID3D10Device1 *ifac
FIXME("iface %p, width %p, height %p stub!\n", iface, width, height); FIXME("iface %p, width %p, height %p stub!\n", iface, width, height);
} }
static D3D10_FEATURE_LEVEL1 d3d10_feature_level1_from_d3d_feature_level(D3D_FEATURE_LEVEL level)
{
return (D3D10_FEATURE_LEVEL1)level;
}
static D3D10_FEATURE_LEVEL1 STDMETHODCALLTYPE d3d10_device_GetFeatureLevel(ID3D10Device1 *iface) static D3D10_FEATURE_LEVEL1 STDMETHODCALLTYPE d3d10_device_GetFeatureLevel(ID3D10Device1 *iface)
{ {
struct d3d_device *device = impl_from_ID3D10Device(iface); struct d3d_device *device = impl_from_ID3D10Device(iface);
TRACE("iface %p.\n", iface); TRACE("iface %p.\n", iface);
return device->feature_level; return d3d10_feature_level1_from_d3d_feature_level(device->feature_level);
} }
static const struct ID3D10Device1Vtbl d3d10_device1_vtbl = static const struct ID3D10Device1Vtbl d3d10_device1_vtbl =
......
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