From 83923e0e293aec71dd444eed71adfa543565b9d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uma=C4=B5o?= <107099960+umajho@users.noreply.github.com> Date: Wed, 25 Mar 2026 23:48:15 +0800 Subject: [PATCH] fix(gles): texture height initialized incorrectly in `create_texture` (#9302) --- wgpu-hal/src/gles/device.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/wgpu-hal/src/gles/device.rs b/wgpu-hal/src/gles/device.rs index 869060572..c16a2ab93 100644 --- a/wgpu-hal/src/gles/device.rs +++ b/wgpu-hal/src/gles/device.rs @@ -844,7 +844,7 @@ impl crate::Device for super::Device { ) } else if target == glow::TEXTURE_3D { let mut width = desc.size.width; - let mut height = desc.size.width; + let mut height = desc.size.height; let mut depth = desc.size.depth_or_array_layers; for i in 0..desc.mip_level_count { gl.tex_image_3d( @@ -865,7 +865,7 @@ impl crate::Device for super::Device { } } else { let mut width = desc.size.width; - let mut height = desc.size.width; + let mut height = desc.size.height; for i in 0..desc.mip_level_count { gl.tex_image_3d( target, @@ -911,7 +911,7 @@ impl crate::Device for super::Device { ) } else if target == glow::TEXTURE_CUBE_MAP { let mut width = desc.size.width; - let mut height = desc.size.width; + let mut height = desc.size.height; for i in 0..desc.mip_level_count { for face in [ glow::TEXTURE_CUBE_MAP_POSITIVE_X, @@ -938,7 +938,7 @@ impl crate::Device for super::Device { } } else { let mut width = desc.size.width; - let mut height = desc.size.width; + let mut height = desc.size.height; for i in 0..desc.mip_level_count { gl.tex_image_2d( target,