mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-21 06:50:59 +01:00
fix(core): Check same-device for external texture planes (#10636)
This commit is contained in:
1 parent
e084b66aab
commit
0342e2fba5
1 file changed
+2
@@ -2321,6 +2321,8 @@ impl Device {
|
||||
.iter()
|
||||
.enumerate()
|
||||
.map(|(i, plane)| {
|
||||
plane.same_device(self)?;
|
||||
|
||||
if plane.samples != 1 {
|
||||
return Err(CreateExternalTextureError::InvalidPlaneMultisample(
|
||||
plane.samples,
|
||||
|
||||
Reference in new issue
Block a user