mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-09-14 07:08:32 +09:00
UploadDirtyMipLevels encoded a texture's GL depth into VkBufferImageCopy imageExtent.depth with layerCount = 1. For array textures the layers live in the image's arrayLayers, and extent.depth > 1 is invalid for 2D images - in practice every layer past the first never received its data. Route the third dimension into layerCount for 1D/2D/cube array images and keep imageExtent.depth for genuine 3D images. Fixes the KHR-GL33.pixelstoragemodes.teximage3d.* failures (110 cases) on lavapipe.