mirror of
https://github.com/reactos/wine.git
synced 2025-01-31 17:23:53 +00:00
wined3d: Remove fake nvidia card in GetAdapterIdentifier.
This commit is contained in:
parent
460f71dcf8
commit
00a84b0cb2
@ -1326,8 +1326,7 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterIdentifier(IWineD3D *iface, UINT Ad
|
||||
isGLInfoValid = IWineD3DImpl_FillGLCaps(iface, IWineD3DImpl_GetAdapterDisplay(iface, Adapter));
|
||||
}
|
||||
|
||||
/* If it worked, return the information requested */
|
||||
if (isGLInfoValid) {
|
||||
/* 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");
|
||||
@ -1342,23 +1341,6 @@ static HRESULT WINAPI IWineD3DImpl_GetAdapterIdentifier(IWineD3D *iface, UINT Ad
|
||||
*(pIdentifier->SubSysId) = 0;
|
||||
*(pIdentifier->Revision) = 0;
|
||||
|
||||
} else {
|
||||
|
||||
/* If it failed, return dummy values from an NVidia driver */
|
||||
WARN_(d3d_caps)("Cannot get GLCaps for device/Vendor Name and Version detection using FillGLCaps, currently using NVIDIA identifiers\n");
|
||||
strcpy(pIdentifier->Driver, "Display");
|
||||
strcpy(pIdentifier->Description, "Direct3D HAL");
|
||||
if (NULL != pIdentifier->DeviceName) strcpy(pIdentifier->DeviceName, "\\\\.\\DISPLAY"); /* FIXME: May depend on desktop? */
|
||||
/* Current Windows Nvidia drivers have versions like e.g. 6.14.10.5672 */
|
||||
pIdentifier->DriverVersion->u.HighPart = MAKEDWORD_VERSION(6, 14);
|
||||
/* 71.74 is a current Linux Nvidia driver version */
|
||||
pIdentifier->DriverVersion->u.LowPart = MAKEDWORD_VERSION(10, (71*100+74));
|
||||
*(pIdentifier->VendorId) = VENDOR_NVIDIA;
|
||||
*(pIdentifier->DeviceId) = CARD_NVIDIA_GEFORCE4_TI4200;
|
||||
*(pIdentifier->SubSysId) = 0;
|
||||
*(pIdentifier->Revision) = 0;
|
||||
}
|
||||
|
||||
/*FIXME: memcpy(&pIdentifier->DeviceIdentifier, ??, sizeof(??GUID)); */
|
||||
if (Flags & WINED3DENUM_NO_WHQL_LEVEL) {
|
||||
*(pIdentifier->WHQLLevel) = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user