Commit b29e3b4f authored by Matteo Bruni's avatar Matteo Bruni Committed by Alexandre Julliard

wined3d: Ignore driver model if the requested driver model entry is missing.

parent 339321dd
...@@ -61,6 +61,7 @@ enum wined3d_display_driver ...@@ -61,6 +61,7 @@ enum wined3d_display_driver
enum wined3d_driver_model enum wined3d_driver_model
{ {
DRIVER_MODEL_GENERIC,
DRIVER_MODEL_WIN9X, DRIVER_MODEL_WIN9X,
DRIVER_MODEL_NT40, DRIVER_MODEL_NT40,
DRIVER_MODEL_NT5X, DRIVER_MODEL_NT5X,
...@@ -1444,7 +1445,8 @@ static const struct driver_version_information *get_driver_version_info(enum win ...@@ -1444,7 +1445,8 @@ static const struct driver_version_information *get_driver_version_info(enum win
{ {
const struct driver_version_information *entry = &driver_version_table[i]; const struct driver_version_information *entry = &driver_version_table[i];
if (entry->driver == driver && entry->driver_model == driver_model) if (entry->driver == driver && (driver_model == DRIVER_MODEL_GENERIC
|| entry->driver_model == driver_model))
{ {
TRACE("Found driver \"%s\", version %u, subversion %u, build %u.\n", TRACE("Found driver \"%s\", version %u, subversion %u, build %u.\n",
entry->driver_name, entry->version, entry->subversion, entry->build); entry->driver_name, entry->version, entry->subversion, entry->build);
...@@ -1619,8 +1621,7 @@ static void init_driver_info(struct wined3d_driver_info *driver_info, ...@@ -1619,8 +1621,7 @@ static void init_driver_info(struct wined3d_driver_info *driver_info,
* This could be an indication that our database is not up to date, so this should be fixed. * This could be an indication that our database is not up to date, so this should be fixed.
*/ */
if ((version_info = get_driver_version_info(driver, driver_model)) if ((version_info = get_driver_version_info(driver, driver_model))
|| (version_info = get_driver_version_info(driver, DRIVER_MODEL_NT5X)) || (version_info = get_driver_version_info(driver, DRIVER_MODEL_GENERIC)))
|| (version_info = get_driver_version_info(driver, DRIVER_MODEL_NT6X)))
{ {
driver_info->name = version_info->driver_name; driver_info->name = version_info->driver_name;
driver_info->version_high = MAKEDWORD_VERSION(driver_os_version, version_info->version); driver_info->version_high = MAKEDWORD_VERSION(driver_os_version, version_info->version);
......
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