You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Fix for UE-6886 - Editor crashing when changing Max Texture Size of a texture to a power of 2 below 64
#codereview nick.penwarden,Rolando.Caloca [CL 2399776 by Allan Bentham in Main branch]
This commit is contained in:
@@ -1856,9 +1856,10 @@ private:
|
||||
|
||||
OutMipChain.Empty(NumOutputMips);
|
||||
// Copy over base mips.
|
||||
int32 CopyCount = FMath::Min(NumOutputMips - StartMip, SourceMips.Num());
|
||||
check(StartMip <= SourceMips.Num());
|
||||
for (int32 MipIndex = StartMip; MipIndex < CopyCount; ++MipIndex)
|
||||
check(StartMip < SourceMips.Num());
|
||||
int32 CopyCount = SourceMips.Num() - StartMip;
|
||||
|
||||
for (int32 MipIndex = StartMip; MipIndex < StartMip + CopyCount; ++MipIndex)
|
||||
{
|
||||
const FImage& Image = SourceMips[MipIndex];
|
||||
const int32 SrcWidth = Image.SizeX;
|
||||
|
||||
Reference in New Issue
Block a user