mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 19:58:53 +00:00
VertexLoaderJit: Fix out-of-bounds access for zfreeze.
This fixes a GCC6.1 warning.
This commit is contained in:
parent
22b5d89bf1
commit
258f48572d
6 changed files with 13 additions and 11 deletions
|
@ -28,7 +28,10 @@
|
|||
namespace VertexLoaderManager
|
||||
{
|
||||
float position_cache[3][4];
|
||||
u32 position_matrix_index[3];
|
||||
|
||||
// The counter added to the address of the array is 1, 2, or 3, but never zero.
|
||||
// So only index 1 - 3 are used.
|
||||
u32 position_matrix_index[4];
|
||||
|
||||
static NativeVertexFormatMap s_native_vertex_map;
|
||||
static NativeVertexFormat* s_current_vtx_fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue