fix(gles): texture height initialized incorrectly in create_texture (#9302)

This commit is contained in:
Umaĵo authored and GitHub committed 2026-03-25 15:48:15 +00:00
1 parent 73600f11d7
commit 83923e0e29
1 file changed
+4 -4
+4 -4
View File
@@ -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,