fix startup crash on windows without adapter (#7093)

Signed-off-by: 21pages <pages21@163.com>
This commit is contained in:
21pages
2024-02-09 16:53:15 +08:00
committed by GitHub
parent a4393b8f90
commit 5581248a1e
3 changed files with 4 additions and 4 deletions

View File

@@ -323,7 +323,7 @@ impl GpuDecoder {
.map(|c| c.d)
.unwrap_or_default()
.drain(..)
.filter(|c| c.data_format == data_format && c.luid == luid)
.filter(|c| c.data_format == data_format && c.luid == luid && luid != 0)
.collect()
}