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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -509,8 +509,8 @@ packages:
dependency: "direct main"
description:
path: "."
ref: "3865a99f60a92bea4d95bb5d55cf524b1bcbbf5a"
resolved-ref: "3865a99f60a92bea4d95bb5d55cf524b1bcbbf5a"
ref: "38951317afe79d953ab25733667bd96e172a80d3"
resolved-ref: "38951317afe79d953ab25733667bd96e172a80d3"
url: "https://github.com/21pages/flutter_gpu_texture_renderer"
source: git
version: "0.0.1"

View File

@ -95,7 +95,7 @@ dependencies:
flutter_gpu_texture_renderer:
git:
url: https://github.com/21pages/flutter_gpu_texture_renderer
ref: 3865a99f60a92bea4d95bb5d55cf524b1bcbbf5a
ref: 38951317afe79d953ab25733667bd96e172a80d3
uuid: ^3.0.7
auto_size_text_field: ^2.2.1
flex_color_picker: ^3.3.0

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()
}