UI: Correct developer tools test run.

This commit is contained in:
Unknown W. Brackets committed 2021-02-03 21:26:25 -08:00
1 parent c1fa4958d9
commit 17d2a314d5
1 file changed
+6
+6
View File
@@ -84,6 +84,10 @@ bool RunTests() {
}
#endif
GraphicsContext *tempCtx = PSP_CoreParameter().graphicsContext;
// Clear the context during tests. We set it back later.
PSP_CoreParameter().graphicsContext = nullptr;
CoreParameter coreParam;
coreParam.cpuCore = (CPUCore)g_Config.iCpuCore;
coreParam.gpuCore = GPUCORE_SOFTWARE;
@@ -175,6 +179,8 @@ bool RunTests() {
PSP_CoreParameter().pixelWidth = pixel_xres;
PSP_CoreParameter().pixelHeight = pixel_yres;
PSP_CoreParameter().headLess = false;
PSP_CoreParameter().graphicsContext = tempCtx;
g_Config.sReportHost = savedReportHost;
return true; // Managed to execute the tests. Says nothing about the result.
}