mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Align stack to 16-byte boundary when compiling in 32-bit mode with GCC. This is required to run anything on OS X and to support SSE instructions on Linux.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@439 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
@ -342,9 +342,10 @@ void VertexLoader::Compile()
|
||||
|
||||
for (int i = 0; i < m_numPipelineStates; i++)
|
||||
{
|
||||
ABI_AlignStack(1 * 4);
|
||||
PUSH(32, Imm32((u32)&m_VtxAttr));
|
||||
CALL(m_PipelineStates[i]);
|
||||
ADD(32, R(ESP), Imm8(4));
|
||||
ABI_RestoreStack(1 * 4);
|
||||
}
|
||||
|
||||
ADD(32, M(&varray->count), Imm8(1));
|
||||
|
Reference in New Issue
Block a user