Kaynağa Gözat

Fixed release build.

Branimir Karadžić 10 yıl önce
ebeveyn
işleme
a6983339c8
4 değiştirilmiş dosya ile 7 ekleme ve 8 silme
  1. 1 1
      src/renderer_d3d12.cpp
  2. 3 3
      src/shader_dx9bc.cpp
  3. 2 3
      src/shader_dxbc.cpp
  4. 1 1
      src/shader_spirv.cpp

+ 1 - 1
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;

+ 3 - 3
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);
 

+ 2 - 3
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);
 

+ 1 - 1
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);