default to no d3d11 debug features; use command line flag to enable

This commit is contained in:
Ryan Fleury
2024-02-06 14:59:41 -08:00
parent 9ef1b4b021
commit fb43eb9c72
+2 -2
View File
@@ -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));