mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-07 22:38:41 +00:00
default to no d3d11 debug features; use command line flag to enable
This commit is contained in:
@@ -143,7 +143,7 @@ r_init(CmdLine *cmdln)
|
|||||||
//- rjf: create base device
|
//- rjf: create base device
|
||||||
UINT creation_flags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
|
UINT creation_flags = D3D11_CREATE_DEVICE_BGRA_SUPPORT;
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
if(!cmd_line_has_flag(cmdln, str8_lit("disable_d3d11_debug")))
|
if(cmd_line_has_flag(cmdln, str8_lit("d3d11_debug")))
|
||||||
{
|
{
|
||||||
creation_flags |= D3D11_CREATE_DEVICE_DEBUG;
|
creation_flags |= D3D11_CREATE_DEVICE_DEBUG;
|
||||||
}
|
}
|
||||||
@@ -183,7 +183,7 @@ r_init(CmdLine *cmdln)
|
|||||||
|
|
||||||
//- rjf: enable break-on-error
|
//- rjf: enable break-on-error
|
||||||
#if !defined(NDEBUG)
|
#if !defined(NDEBUG)
|
||||||
if(!cmd_line_has_flag(cmdln, str8_lit("disable_d3d11_debug")))
|
if(cmd_line_has_flag(cmdln, str8_lit("d3d11_debug")))
|
||||||
{
|
{
|
||||||
ID3D11InfoQueue *info = 0;
|
ID3D11InfoQueue *info = 0;
|
||||||
error = r_d3d11_state->base_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void **)(&info));
|
error = r_d3d11_state->base_device->QueryInterface(__uuidof(ID3D11InfoQueue), (void **)(&info));
|
||||||
|
|||||||
Reference in New Issue
Block a user