mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-22 07:21:04 +01:00
fix(gles): texture height initialized incorrectly in create_texture (#9302)
This commit is contained in:
1 parent
73600f11d7
commit
83923e0e29
1 file changed
+4
-4
@@ -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,
|
||||
|
||||
Reference in new issue
Block a user