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

d3d11: Introduce a function to convert a wined3d feature level to a D3D feature level.

parent ace51383
......@@ -6078,6 +6078,11 @@ static inline struct d3d_device *device_from_wined3d_device_parent(struct wined3
return CONTAINING_RECORD(device_parent, struct d3d_device, device_parent);
}
static D3D_FEATURE_LEVEL d3d_feature_level_from_wined3d(enum wined3d_feature_level level)
{
return (D3D_FEATURE_LEVEL)level;
}
static void CDECL device_parent_wined3d_device_created(struct wined3d_device_parent *device_parent,
struct wined3d_device *wined3d_device)
{
......@@ -6088,7 +6093,7 @@ static void CDECL device_parent_wined3d_device_created(struct wined3d_device_par
wined3d_device_incref(wined3d_device);
device->wined3d_device = wined3d_device;
device->feature_level = wined3d_device_get_feature_level(wined3d_device);
device->feature_level = d3d_feature_level_from_wined3d(wined3d_device_get_feature_level(wined3d_device));
set_default_depth_stencil_state(wined3d_device);
}
......
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