Merge pull request #2033 from jpark37/intel-hates-nv12

libobs-d3d11: Disable NV12 usage for Intel
This commit is contained in:
Jim 2019-08-16 02:16:31 -07:00 committed by GitHub
commit a2c2e15ddc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -390,6 +390,11 @@ void gs_device::InitDevice(uint32_t adapterIdx)
nv12Supported = false;
/* Intel CopyResource is very slow with NV12 */
if (desc.VendorId == 0x8086) {
return;
}
ComQIPtr<ID3D11Device1> d3d11_1(device);
if (!d3d11_1) {
return;