Merge pull request #1606 from FioraAeterna/vertexloadercall
Vertex loader: use ABI_CallFunction
This commit is contained in:
commit
e7daf6b3bc
|
@ -410,8 +410,7 @@ void VertexLoader::CompileVertexTranslator()
|
||||||
void VertexLoader::WriteCall(TPipelineFunction func)
|
void VertexLoader::WriteCall(TPipelineFunction func)
|
||||||
{
|
{
|
||||||
#ifdef USE_VERTEX_LOADER_JIT
|
#ifdef USE_VERTEX_LOADER_JIT
|
||||||
MOV(64, R(RAX), Imm64((u64)func));
|
ABI_CallFunction((const void*)func);
|
||||||
CALLptr(R(RAX));
|
|
||||||
#else
|
#else
|
||||||
m_PipelineStages[m_numPipelineStages++] = func;
|
m_PipelineStages[m_numPipelineStages++] = func;
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in New Issue