Skip to content

Commit

Permalink
Fix syscall errors on termination
Browse files Browse the repository at this point in the history
  • Loading branch information
SonicMastr committed Apr 15, 2022
1 parent 9cd8a6b commit a10bdb8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -432,6 +432,7 @@ PVRSRV_ERROR IMG_CALLCONV PVRSRVCreateDCSwapChain(IMG_HANDLE hDevice,

psSwapChain->psConnection = psConnection;
psSwapChain->hSwapChainReadyEvf = readyEvfId;
psSwapChain->hSwapChainPendingEvf = pendingEvfId;
psSwapChain->hSwapChainThread = thrdId;
psSwapChain->sDims.ui32Width = psSrcSurfAttrib->sDims.ui32Width;
psSwapChain->sDims.ui32Height = psSrcSurfAttrib->sDims.ui32Height;
Expand Down Expand Up @@ -512,10 +513,6 @@ IMG_HANDLE hSwapChain)

psSwapChain = (PSP2_SWAPCHAIN *)hSwapChain;

for (i = 0; i < psSwapChain->ui32BufferCount; i++) {
sceKernelFreeMemBlock(psSwapChain->hDispMemUID[i]);
}

s_psOldBufSyncInfo = IMG_NULL;

s_flipChainExists = IMG_FALSE;
Expand All @@ -530,6 +527,10 @@ IMG_HANDLE hSwapChain)
PVRSRVDestroySyncInfoModObj((PVRSRV_CONNECTION *)hDevice, s_hKernelSwapChainSync[i]);
}

for (i = 0; i < psSwapChain->ui32BufferCount; i++) {
sceKernelFreeMemBlock(psSwapChain->hDispMemUID[i]);
}

PVRSRVFreeUserModeMem(psSwapChain);

return PVRSRV_OK;
Expand Down
Binary file modified gpu_es4_ext/libSceGpuEs4UserForVsh_stub.a
Binary file not shown.
Binary file modified gpu_es4_ext/libSceGpuEs4User_stub.a
Binary file not shown.

0 comments on commit a10bdb8

Please sign in to comment.