mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-23 02:10:29 +00:00
Return more correct values in sceGeDrawSync().
This commit is contained in:
parent
74441fdc07
commit
5336ae814d
@ -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!
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user