diff --git a/src/renderer_d3d12.cpp b/src/renderer_d3d12.cpp index 130287d7d..b493302ca 100644 --- a/src/renderer_d3d12.cpp +++ b/src/renderer_d3d12.cpp @@ -588,7 +588,7 @@ namespace bgfx { namespace d3d12 if (SUCCEEDED(hr) ) { m_infoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_CORRUPTION, true); - m_infoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_ERROR, false); + m_infoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_ERROR, true); m_infoQueue->SetBreakOnSeverity(D3D12_MESSAGE_SEVERITY_WARNING, false); D3D12_INFO_QUEUE_FILTER filter; diff --git a/src/shader_dx9bc.cpp b/src/shader_dx9bc.cpp index 70de55a03..0671ab451 100644 --- a/src/shader_dx9bc.cpp +++ b/src/shader_dx9bc.cpp @@ -682,6 +682,7 @@ namespace bgfx bool pixelShader = (0xffff0000 == (_bc.version & 0xffff0000) ); uint32_t versionMajor = (_bc.version>>8)&0xff; uint32_t versionMinor = _bc.version&0xff; + BX_UNUSED(pixelShader, versionMajor, versionMinor); BX_TRACE("%s shader %d.%d" , pixelShader ? "pixel" : "vertex" , versionMajor @@ -709,8 +710,7 @@ namespace bgfx { Dx9bcInstruction instruction; uint32_t size = read(&reader, instruction); - - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); + BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); _fn(token * sizeof(uint32_t), instruction, _userData); @@ -730,7 +730,7 @@ namespace bgfx { Dx9bcInstruction instruction; uint32_t size = read(&reader, instruction); - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); + BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); _fn(instruction, _userData); diff --git a/src/shader_dxbc.cpp b/src/shader_dxbc.cpp index 61184746d..754335b34 100644 --- a/src/shader_dxbc.cpp +++ b/src/shader_dxbc.cpp @@ -1812,8 +1812,7 @@ namespace bgfx { DxbcInstruction instruction; uint32_t size = read(&reader, instruction); - - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); + BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); _fn(token * sizeof(uint32_t), instruction, _userData); @@ -1833,7 +1832,7 @@ namespace bgfx { DxbcInstruction instruction; uint32_t size = read(&reader, instruction); - BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); + BX_CHECK(size/4 == instruction.length, "read %d, expected %d", size/4, instruction.length); BX_UNUSED(size); _fn(instruction, _userData); diff --git a/src/shader_spirv.cpp b/src/shader_spirv.cpp index a7b15957c..40bf7acbb 100644 --- a/src/shader_spirv.cpp +++ b/src/shader_spirv.cpp @@ -716,12 +716,12 @@ namespace bgfx { SpirvInstruction instruction; uint32_t size = read(&reader, instruction); - BX_CHECK(size/4 == instruction.length, "read %d, expected %d, %s" , size/4 , instruction.length , getName(instruction.opcode) ); + BX_UNUSED(size); _fn(token * sizeof(uint32_t), instruction, _userData);