Commit 6c7cce55 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

wined3d: Get rid of the "opengl" field in struct wined3d_adapter.

parent 1249976e
......@@ -1188,7 +1188,7 @@ HRESULT CDECL wined3d_device_init_3d(struct wined3d_device *device,
if (device->d3d_initialized)
return WINED3DERR_INVALIDCALL;
if (!device->adapter->opengl)
if (device->wined3d->flags & WINED3D_NO3D)
return WINED3DERR_INVALIDCALL;
device->valid_rt_mask = 0;
......
......@@ -5137,8 +5137,7 @@ HRESULT CDECL wined3d_get_device_caps(const struct wined3d *wined3d, UINT adapte
WINEDDSCAPS_VISIBLE;
caps->ddraw_caps.stride_align = DDRAW_PITCH_ALIGNMENT;
/* Set D3D caps if OpenGL is available. */
if (adapter->opengl)
if (!(wined3d->flags & WINED3D_NO3D))
{
caps->ddraw_caps.dds_caps |= WINEDDSCAPS_3DDEVICE |
WINEDDSCAPS_MIPMAP |
......@@ -5601,7 +5600,6 @@ static BOOL InitAdapters(struct wined3d *wined3d)
select_shader_mode(&adapter->gl_info, &ps_selected_mode, &vs_selected_mode);
fillGLAttribFuncs(&adapter->gl_info);
adapter->opengl = TRUE;
}
wined3d->adapter_count = 1;
TRACE("%u adapters successfully initialized.\n", wined3d->adapter_count);
......
......@@ -1569,8 +1569,6 @@ struct wined3d_driver_info
struct wined3d_adapter
{
UINT ordinal;
BOOL opengl;
POINT monitorPoint;
enum wined3d_format_id screen_format;
......
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