mirror of
https://github.com/scratchfoundation/bgfx.git
synced 2024-11-25 00:58:30 -05:00
Fixed issue#123
This commit is contained in:
parent
e782f2f873
commit
a8abead615
1 changed files with 23 additions and 16 deletions
|
@ -519,8 +519,9 @@ namespace bgfx
|
|||
{
|
||||
ID3D11InfoQueue* infoQueue;
|
||||
hr = m_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void**)&infoQueue);
|
||||
BGFX_FATAL(SUCCEEDED(hr), Fatal::UnableToInitialize, "Unable to create Direct3D11 device.");
|
||||
|
||||
if (SUCCEEDED(hr) )
|
||||
{
|
||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_CORRUPTION, true);
|
||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_ERROR, true);
|
||||
infoQueue->SetBreakOnSeverity(D3D11_MESSAGE_SEVERITY_WARNING, false);
|
||||
|
@ -539,6 +540,12 @@ namespace bgfx
|
|||
|
||||
DX_RELEASE(infoQueue, 3);
|
||||
}
|
||||
else
|
||||
{
|
||||
// InfoQueue QueryInterface will fail when AMD GPU Perfstudio 2 is present.
|
||||
setGraphicsDebuggerPresent(true);
|
||||
}
|
||||
}
|
||||
|
||||
UniformHandle handle = BGFX_INVALID_HANDLE;
|
||||
for (uint32_t ii = 0; ii < PredefinedUniform::Count; ++ii)
|
||||
|
|
Loading…
Reference in a new issue