Merge branch 'capucho/wgpu-trace' into 'master'

Fix dir is empty check when setting WGPU_TRACE_DIR

See merge request veloren/veloren!2873
This commit is contained in:
Imbris 2021-09-24 14:38:41 +00:00
commit d3acb9a654

View File

@ -292,7 +292,7 @@ impl Renderer {
path.read_dir()
.expect("Could not read the directory that is specified by WGPU_TRACE_DIR")
.next()
.is_some(),
.is_none(),
"WGPU_TRACE_DIR is set to the path \"{}\" which already contains other files",
path.display()
);