d3d11: Stop advertising the ID3D10Device interface on devices created by d3d11.
commit2814e5ce0b9d9b1c058a8937692bce6212ac74b4
authorRémi Bernon <rbernon@codeweavers.com>
Mon, 1 Jun 2020 23:17:05 +0000 (2 03:47 +0430)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 2 Jun 2020 09:15:02 +0000 (2 11:15 +0200)
tree18b2ef02d565dbb9a8f12fbfce2564cbd6f2eef0
parenta5a1bcbdaf981ba34e833f62f1bbb6530ee6dcd9
d3d11: Stop advertising the ID3D10Device interface on devices created by d3d11.

The UPlay overlay tries to detect the device D3D version by querying
this interface first. On d3d11 games, and as we are incorrectly
advertising ID3D10Device, it decides to use d3d10 hooks and crashes the
game after ~10 minutes.

This is happening with "Splinter Cell: Blacklist" for instance.

Signed-off-by: Rémi Bernon <rbernon@codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
dlls/d3d11/d3d11_main.c
dlls/d3d11/d3d11_private.h
dlls/d3d11/device.c
dlls/d3d11/tests/d3d11.c