Skip to content

Commit

Permalink
Compile fixes for UE5 production release
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo committed Apr 7, 2022
1 parent a956c23 commit 3983c1f
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion BLUI.uplugin
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"FileVersion": 3,
"FriendlyName": "BLUI",
"Version": 3,
"VersionName": "4.3.1",
"VersionName": "4.4.0",
"Description": "Chromium Embedded Framework (CEF) powered HTML UI and HUD for Unreal Engine 4",
"Category": "UI",
"CreatedBy": "Aaron M. Shea, Getnamo, & Contributors",
Expand Down
16 changes: 8 additions & 8 deletions Source/Blu/Private/BluEye.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ void UBluEye::ResetTexture()
Texture->AddToRoot();
Texture->UpdateResource();

RenderParams.Texture2DResource = (FTexture2DResource*)Texture->Resource;
RenderParams.Texture2DResource = (FTexture2DResource*)Texture->GetResource();

ResetMatInstance();

Expand All @@ -131,13 +131,13 @@ void UBluEye::DestroyTexture()
{
Texture->RemoveFromRoot();

if (Texture->Resource)
if (Texture->GetResource())
{
BeginReleaseResource(Texture->Resource);
BeginReleaseResource(Texture->GetResource());
FlushRenderingCommands();
}

Texture->MarkPendingKill();
Texture->MarkAsGarbage();
Texture = nullptr;
bValidTexture = false;
}
Expand All @@ -161,7 +161,7 @@ void UBluEye::TextureUpdate(const void *buffer, FUpdateTextureRegion2D *updateRe
}

FUpdateTextureRegionsData* RegionData = new FUpdateTextureRegionsData;
RegionData->Texture2DResource = (FTextureResource*)Texture->Resource;
RegionData->Texture2DResource = (FTextureResource*)Texture->GetResource();
RegionData->NumRegions = regionCount;
RegionData->SrcBpp = 4;
RegionData->SrcPitch = int32(Settings.ViewSize.X) * 4;
Expand Down Expand Up @@ -627,7 +627,7 @@ void UBluEye::SpawnTickEventLoopIfNeeded()
{
if (!EventLoopData.DelegateHandle.IsValid())
{
EventLoopData.DelegateHandle = FTicker::GetCoreTicker().AddTicker(FTickerDelegate::CreateLambda([&](float DeltaTime)
EventLoopData.DelegateHandle = FTSTicker::GetCoreTicker().AddTicker(FTickerDelegate::CreateLambda([&](float DeltaTime)
{
if (EventLoopData.bShouldTickEventLoop)
{
Expand Down Expand Up @@ -719,8 +719,8 @@ void UBluEye::BeginDestroy()
EventLoopData.EyeCount--;
if (EventLoopData.EyeCount <= 0)
{
FTicker::GetCoreTicker().RemoveTicker(EventLoopData.DelegateHandle);
EventLoopData.DelegateHandle = FDelegateHandle();
FTSTicker::GetCoreTicker().RemoveTicker(EventLoopData.DelegateHandle);
EventLoopData.DelegateHandle = FTSTicker::FDelegateHandle();
}
Super::BeginDestroy();
}
Expand Down
4 changes: 2 additions & 2 deletions Source/Blu/Public/BluTypes.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@

struct FTickEventLoopData
{
FDelegateHandle DelegateHandle;
FTSTicker::FDelegateHandle DelegateHandle;
int32 EyeCount;
bool bShouldTickEventLoop;

FTickEventLoopData()
{
DelegateHandle = FDelegateHandle();
DelegateHandle = FTSTicker::FDelegateHandle();
EyeCount = 0;
bShouldTickEventLoop = true;
}
Expand Down

0 comments on commit 3983c1f

Please sign in to comment.