add create device video support flag to hopefully fix QS?
This commit is contained in:
@@ -20,6 +20,7 @@ import (
|
|||||||
const (
|
const (
|
||||||
d3d11SdkVersion = 7
|
d3d11SdkVersion = 7
|
||||||
d3d11CreateDeviceBgraSupport = 0x20
|
d3d11CreateDeviceBgraSupport = 0x20
|
||||||
|
d3d11CreateDeviceVideoSupport = 0x800
|
||||||
d3dDriverTypeUnknown = 0
|
d3dDriverTypeUnknown = 0
|
||||||
dxgiErrorNotFound uintptr = 0x887A0002
|
dxgiErrorNotFound uintptr = 0x887A0002
|
||||||
dxgiErrorWaitTimeout uintptr = 0x887A0027
|
dxgiErrorWaitTimeout uintptr = 0x887A0027
|
||||||
@@ -1371,7 +1372,7 @@ func createD3DDevice(adapter *idxgiAdapter1) (*d3d11Device, *d3d11DeviceContext,
|
|||||||
uintptr(unsafe.Pointer(adapter)),
|
uintptr(unsafe.Pointer(adapter)),
|
||||||
uintptr(d3dDriverTypeUnknown),
|
uintptr(d3dDriverTypeUnknown),
|
||||||
0,
|
0,
|
||||||
uintptr(d3d11CreateDeviceBgraSupport),
|
uintptr(d3d11CreateDeviceBgraSupport|d3d11CreateDeviceVideoSupport),
|
||||||
0,
|
0,
|
||||||
0,
|
0,
|
||||||
uintptr(d3d11SdkVersion),
|
uintptr(d3d11SdkVersion),
|
||||||
|
|||||||
Reference in New Issue
Block a user