Headless: Allow screenshot compare without backend.

This makes not just graphics-enabled tests work in headless on softgpu,
but also screenshot comparison ones.
This commit is contained in:
Unknown W. Brackets 2021-01-17 17:42:07 -08:00
parent a88f6b45d2
commit e0b784f123

View File

@ -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;