Преглед изворни кода

make TimerQueryMtl.m_result match BGFX_CONFIG_MAX_VIEWS size (#3148)

* fix error when create backbuffer with msaa and srgb format

* fix d3d12 error when create backbuffer with msaa and srgb format

* fix TimerQueryMtl result bug
Kitchen пре 2 година
родитељ
комит
20a1e458da
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/renderer_mtl.h

+ 1 - 1
src/renderer_mtl.h

@@ -1162,7 +1162,7 @@ namespace bgfx { namespace mtl
 		uint64_t m_elapsed;
 		uint64_t m_elapsed;
 		uint64_t m_frequency;
 		uint64_t m_frequency;
 
 
-		Result m_result[4*2];
+		Result m_result[BGFX_CONFIG_MAX_VIEWS+1];
 		bx::RingBufferControl m_control;
 		bx::RingBufferControl m_control;
 	};
 	};