mirror of
https://github.com/gnif/LookingGlass.git
synced 2025-04-25 08:06:30 +00:00
[idd] driver: make m_indirectCopy static so it persists on retry
This commit is contained in:
parent
648fca7caa
commit
f26fa17bc1
@ -1,10 +1,11 @@
|
|||||||
#include "CD3D12Device.h"
|
#include "CD3D12Device.h"
|
||||||
#include "CDebug.h"
|
#include "CDebug.h"
|
||||||
|
|
||||||
|
bool CD3D12Device::m_indirectCopy = false;
|
||||||
|
|
||||||
CD3D12Device::CD3D12Device(LUID adapterLuid) :
|
CD3D12Device::CD3D12Device(LUID adapterLuid) :
|
||||||
m_adapterLuid(adapterLuid),
|
m_adapterLuid(adapterLuid),
|
||||||
m_debug(false),
|
m_debug(false)
|
||||||
m_indirectCopy(false)
|
|
||||||
{
|
{
|
||||||
if (m_debug)
|
if (m_debug)
|
||||||
{
|
{
|
||||||
|
@ -16,7 +16,9 @@ struct CD3D12Device
|
|||||||
private:
|
private:
|
||||||
LUID m_adapterLuid;
|
LUID m_adapterLuid;
|
||||||
bool m_debug;
|
bool m_debug;
|
||||||
bool m_indirectCopy;
|
|
||||||
|
// static as this needs to persist if set
|
||||||
|
static bool m_indirectCopy;
|
||||||
|
|
||||||
ComPtr<ID3D12Debug6 > m_dxDebug;
|
ComPtr<ID3D12Debug6 > m_dxDebug;
|
||||||
ComPtr<ID3D12InfoQueue1> m_infoQueue;
|
ComPtr<ID3D12InfoQueue1> m_infoQueue;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user