mirror of
https://github.com/mordentral/AdvancedSessionsPlugin.git
synced 2025-10-22 16:04:18 +00:00
Merge branch 'master' into Refactorwork
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user