whb: Fix GPU hang reset.

This commit is contained in:
James Benton 2017-06-02 14:37:13 +01:00
parent 574eeef4f0
commit 6bc6534a9f

View File

@ -435,6 +435,7 @@ WHBGfxShutdown()
}
GfxProcCallbackReleased(NULL);
GX2RSetAllocator(NULL, NULL);
GX2Shutdown();
if (sTvContextState) {
@ -451,8 +452,6 @@ WHBGfxShutdown()
GfxHeapFreeMEM2(sCommandBufferPool);
sCommandBufferPool = NULL;
}
GX2RSetAllocator(NULL, NULL);
}
void
@ -466,7 +465,6 @@ WHBGfxBeginRender()
GX2GetSwapStatus(&swapCount, &flipCount, &lastFlip, &lastVsync);
if (flipCount >= swapCount) {
sGpuTimedOut = FALSE;
break;
}