Return more correct values in sceGeDrawSync().

This commit is contained in:
Unknown W. Brackets 2013-04-03 23:31:01 -07:00
parent 74441fdc07
commit 5336ae814d

View File

@ -21,7 +21,18 @@ u32 GPUCommon::DrawSync(int mode) {
if (mode < 0 || mode > 1)
return SCE_KERNEL_ERROR_INVALID_MODE;
return 0;
if (mode == 0) {
// TODO: Wait.
return 0;
}
if (!currentList)
return PSP_GE_LIST_COMPLETED;
if (currentList->pc == currentList->stall)
return PSP_GE_LIST_STALLING;
return PSP_GE_LIST_DRAWING;
}
int GPUCommon::ListSync(int listid, int mode)
@ -213,6 +224,7 @@ bool GPUCommon::ProcessDLQueue()
iter = dlQueue.begin();
}
}
currentList = NULL;
return true; //no more lists!
}