From 952111b8ae4fc57c37bc96fb7fa9b5ec19caa0a8 Mon Sep 17 00:00:00 2001 From: stshine Date: Thu, 28 Apr 2022 23:41:55 +0800 Subject: [PATCH] Revert "Remove gles compressed texture log::error! (#2630)" This reverts commit ebca3298f01ea72f80aeac4ab1be889469f9c699. --- wgpu-hal/src/gles/queue.rs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/wgpu-hal/src/gles/queue.rs b/wgpu-hal/src/gles/queue.rs index c223c2a851..31c837cdbb 100644 --- a/wgpu-hal/src/gles/queue.rs +++ b/wgpu-hal/src/gles/queue.rs @@ -493,7 +493,21 @@ impl super::Queue { glow::CompressedPixelUnpackData::Slice(src_data) } }; - + log::error!( + "bytes_per_row: {}, \ + minimum_rows_per_image: {}, \ + rows_per_image: {}, \ + bytes_per_image: {}, \ + minimum_bytes_per_image: {}, \ + bytes_in_upload: {}\ + ", + bytes_per_row, + minimum_rows_per_image, + rows_per_image, + bytes_per_image, + minimum_bytes_per_image, + bytes_in_upload + ); match dst_target { glow::TEXTURE_3D | glow::TEXTURE_CUBE_MAP_ARRAY