Commit 66930554 authored by Stefan Dösinger's avatar Stefan Dösinger Committed by Alexandre Julliard

wined3d: Store the adapter driver and description in the adapter.

parent a460a2df
......@@ -1316,8 +1316,8 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterIdentifier(IWineD3D *iface, UINT Ad
/* Return the information requested */
TRACE_(d3d_caps)("device/Vendor Name and Version detection using FillGLCaps\n");
strcpy(pIdentifier->Driver, "Display");
strcpy(pIdentifier->Description, "Direct3D HAL");
strcpy(pIdentifier->Driver, Adapters[Adapter].driver);
strcpy(pIdentifier->Description, Adapters[Adapter].description);
/* Note dx8 doesn't supply a DeviceName */
if (NULL != pIdentifier->DeviceName) strcpy(pIdentifier->DeviceName, "\\\\.\\DISPLAY"); /* FIXME: May depend on desktop? */
......@@ -2621,6 +2621,8 @@ BOOL InitAdapters(void) {
HeapFree(GetProcessHeap(), 0, Adapters);
return FALSE;
}
Adapters[0].driver = "Display";
Adapters[0].description = "Direct3D HAL";
}
numAdapters = 1;
TRACE("%d adapters successfully initialized\n", numAdapters);
......
......@@ -577,6 +577,8 @@ struct WineD3DAdapter
POINT monitorPoint;
Display *display;
WineD3D_GL_Info gl_info;
const char *driver;
const char *description;
};
extern BOOL InitAdapters(void);
......
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