@@ -117,7 +117,7 @@ void UBluEye::ResetTexture()
117
117
Texture->AddToRoot ();
118
118
Texture->UpdateResource ();
119
119
120
- RenderParams.Texture2DResource = (FTexture2DResource*)Texture->Resource ;
120
+ RenderParams.Texture2DResource = (FTexture2DResource*)Texture->GetResource () ;
121
121
122
122
ResetMatInstance ();
123
123
@@ -131,13 +131,13 @@ void UBluEye::DestroyTexture()
131
131
{
132
132
Texture->RemoveFromRoot ();
133
133
134
- if (Texture->Resource )
134
+ if (Texture->GetResource () )
135
135
{
136
- BeginReleaseResource (Texture->Resource );
136
+ BeginReleaseResource (Texture->GetResource () );
137
137
FlushRenderingCommands ();
138
138
}
139
139
140
- Texture->MarkPendingKill ();
140
+ Texture->MarkAsGarbage ();
141
141
Texture = nullptr ;
142
142
bValidTexture = false ;
143
143
}
@@ -161,7 +161,7 @@ void UBluEye::TextureUpdate(const void *buffer, FUpdateTextureRegion2D *updateRe
161
161
}
162
162
163
163
FUpdateTextureRegionsData* RegionData = new FUpdateTextureRegionsData;
164
- RegionData->Texture2DResource = (FTextureResource*)Texture->Resource ;
164
+ RegionData->Texture2DResource = (FTextureResource*)Texture->GetResource () ;
165
165
RegionData->NumRegions = regionCount;
166
166
RegionData->SrcBpp = 4 ;
167
167
RegionData->SrcPitch = int32 (Settings.ViewSize .X ) * 4 ;
@@ -627,7 +627,7 @@ void UBluEye::SpawnTickEventLoopIfNeeded()
627
627
{
628
628
if (!EventLoopData.DelegateHandle .IsValid ())
629
629
{
630
- EventLoopData.DelegateHandle = FTicker ::GetCoreTicker ().AddTicker (FTickerDelegate::CreateLambda ([&](float DeltaTime)
630
+ EventLoopData.DelegateHandle = FTSTicker ::GetCoreTicker ().AddTicker (FTickerDelegate::CreateLambda ([&](float DeltaTime)
631
631
{
632
632
if (EventLoopData.bShouldTickEventLoop )
633
633
{
@@ -719,8 +719,8 @@ void UBluEye::BeginDestroy()
719
719
EventLoopData.EyeCount --;
720
720
if (EventLoopData.EyeCount <= 0 )
721
721
{
722
- FTicker ::GetCoreTicker ().RemoveTicker (EventLoopData.DelegateHandle );
723
- EventLoopData.DelegateHandle = FDelegateHandle ();
722
+ FTSTicker ::GetCoreTicker ().RemoveTicker (EventLoopData.DelegateHandle );
723
+ EventLoopData.DelegateHandle = FTSTicker:: FDelegateHandle ();
724
724
}
725
725
Super::BeginDestroy ();
726
726
}
0 commit comments