Skip to content

Commit

Permalink
make TimerQueryMtl.m_result match BGFX_CONFIG_MAX_VIEWS size (bkaradz…
Browse files Browse the repository at this point in the history
…ic#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
  • Loading branch information
junjie020 authored and Michael Pekar committed Mar 2, 2024
1 parent 360f7c6 commit 3511e8e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/renderer_mtl.h
Original file line number Diff line number Diff line change
Expand Up @@ -1162,7 +1162,7 @@ namespace bgfx { namespace mtl
uint64_t m_elapsed;
uint64_t m_frequency;

Result m_result[4*2];
Result m_result[BGFX_CONFIG_MAX_VIEWS+1];
bx::RingBufferControl m_control;
};

Expand Down

0 comments on commit 3511e8e

Please sign in to comment.