From e0b784f12314b8af8dd686a21613685eb413b174 Mon Sep 17 00:00:00 2001 From: "Unknown W. Brackets" Date: Sun, 17 Jan 2021 17:42:07 -0800 Subject: [PATCH] Headless: Allow screenshot compare without backend. This makes not just graphics-enabled tests work in headless on softgpu, but also screenshot comparison ones. --- headless/StubHost.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/headless/StubHost.cpp b/headless/StubHost.cpp index 1219d42365..7e0f3caac8 100644 --- a/headless/StubHost.cpp +++ b/headless/StubHost.cpp @@ -33,12 +33,7 @@ void HeadlessHost::SendOrCollectDebugOutput(const std::string &data) DEBUG_LOG(COMMON, "%s", data.c_str()); } -void HeadlessHost::SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h) -{ - if (!gfx_) { - return; - } - +void HeadlessHost::SendDebugScreenshot(const u8 *pixbuf, u32 w, u32 h) { // Only if we're actually comparing. if (comparisonScreenshot_.empty()) { return;