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