mirror of
				https://github.com/ryujinx-mirror/ryujinx.git
				synced 2025-11-03 21:29:00 -06:00 
			
		
		
		
	Fix mip offset/size for full 3D texture upload on Vulkan (#6294)
This commit is contained in:
		@@ -839,7 +839,9 @@ namespace Ryujinx.Graphics.Vulkan
 | 
			
		||||
 | 
			
		||||
            for (int level = 0; level < levels; level++)
 | 
			
		||||
            {
 | 
			
		||||
                int mipSize = GetBufferDataLength(Info.GetMipSize2D(dstLevel + level) * dstLayers);
 | 
			
		||||
                int mipSize = GetBufferDataLength(is3D && !singleSlice
 | 
			
		||||
                    ? Info.GetMipSize(dstLevel + level)
 | 
			
		||||
                    : Info.GetMipSize2D(dstLevel + level) * dstLayers);
 | 
			
		||||
 | 
			
		||||
                int endOffset = offset + mipSize;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user