Adapted drawInst_simple to vitaGL.

This commit is contained in:
Rinnegatamante
2020-10-19 13:40:50 +02:00
parent c95d523ec9
commit b5132a0691
+4 -2
View File
@@ -29,8 +29,10 @@ void
drawInst_simple(InstanceDataHeader *header, InstanceData *inst) drawInst_simple(InstanceDataHeader *header, InstanceData *inst)
{ {
flushCache(); flushCache();
glDrawElements(header->primType, inst->numIndex, memcpy_neon(gIndices, (uint8_t*)header->indexBuffer + inst->offset, inst->numIndex * 2);
GL_UNSIGNED_SHORT, (void*)(uintptr)inst->offset); vglIndexPointerMapped(gIndices + inst->offset);
gIndices += inst->numIndex;
vglDrawObjects(header->primType, inst->numIndex, GL_FALSE);
} }
// Emulate PS2 GS alpha test FB_ONLY case: failed alpha writes to frame- but not to depth buffer // Emulate PS2 GS alpha test FB_ONLY case: failed alpha writes to frame- but not to depth buffer