tests: Fix imgchecks feature compiling

This commit is contained in:
Nathan Adams 2023-01-28 12:00:59 +01:00 committed by kmeisthax
parent c73aa5b9d5
commit 4ef88eaaa0
1 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
use crate::util::environment::WGPU;
use crate::util::test::Test;
use anyhow::{anyhow, Result};
use ruffle_core::backend::log::LogBackend;
@ -123,7 +124,7 @@ pub fn run_swf(
// Render the image to disk
// FIXME: Determine how we want to compare against on on-disk image
#[cfg(feature = "imgtests")]
if test.options.image && wgpu_descriptors.is_some() {
if test.options.image && WGPU.is_some() {
use ruffle_render_wgpu::backend::WgpuRenderBackend;
use ruffle_render_wgpu::target::TextureTarget;