mirror of
https://github.com/cemu-project/Cemu.git
synced 2026-04-24 23:27:21 -05:00
Metal: prevent OOB write in MetalRenderer()
`m_uniformBufferOffsets` is sized to `METAL_GENERAL_SHADER_TYPE_TOTAL`
This commit is contained in:
parent
75b1c76837
commit
cadb69f31a
|
|
@ -236,7 +236,7 @@ MetalRenderer::MetalRenderer()
|
|||
for (uint32 i = 0; i < MAX_MTL_VERTEX_BUFFERS; i++)
|
||||
m_state.m_vertexBufferOffsets[i] = INVALID_OFFSET;
|
||||
|
||||
for (uint32 i = 0; i < METAL_SHADER_TYPE_TOTAL; i++)
|
||||
for (uint32 i = 0; i < METAL_GENERAL_SHADER_TYPE_TOTAL; i++)
|
||||
{
|
||||
for (uint32 j = 0; j < MAX_MTL_BUFFERS; j++)
|
||||
m_state.m_uniformBufferOffsets[i][j] = INVALID_OFFSET;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user