From 17d2a314d5fcddb2c14e839d2e14945a55384c6e Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Wed, 3 Feb 2021 21:26:25 -0800 Subject: [PATCH] UI: Correct developer tools test run. --- android/jni/TestRunner.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/android/jni/TestRunner.cpp b/android/jni/TestRunner.cpp index e2908badb9..c050b21c77 100644 --- a/android/jni/TestRunner.cpp +++ b/android/jni/TestRunner.cpp @@ -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. }