Merge branch 'master' into Refactorwork

This commit is contained in:
Joshua
2024-01-19 16:06:37 -05:00

View File

@@ -346,16 +346,15 @@ UTexture2D * UAdvancedSteamFriendsLibrary::GetSteamFriendAvatar(const FBPUniqueN
FMemory::Memcpy(MipData, (void*)oAvatarRGBA, Height * Width * 4); FMemory::Memcpy(MipData, (void*)oAvatarRGBA, Height * Width * 4);
PlatformData->Mips[0].BulkData.Unlock(); PlatformData->Mips[0].BulkData.Unlock();
// Original implementation was missing this!!
// the hell man......
delete[] oAvatarRGBA;
//Setting some Parameters for the Texture and finally returning it //Setting some Parameters for the Texture and finally returning it
PlatformData->SetNumSlices(1); PlatformData->SetNumSlices(1);
Avatar->NeverStream = true; Avatar->NeverStream = true;
//Avatar->CompressionSettings = TC_EditorIcon; //Avatar->CompressionSettings = TC_EditorIcon;
} }
// Free RGBA buffer regardless of whether it was used or not
delete[] oAvatarRGBA;
Avatar->UpdateResource(); Avatar->UpdateResource();
Result = EBlueprintAsyncResultSwitch::OnSuccess; Result = EBlueprintAsyncResultSwitch::OnSuccess;