Skip to content

Commit 91cc640

Browse files
committed
Fix compile errors on 5.4
1 parent 08472c1 commit 91cc640

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Source/BetaHubBugReporter/Private/BH_GameRecorder.cpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
#include "RenderGraphUtils.h"
1616
#include "RHISurfaceDataConversion.h"
1717

18-
#if ENGINE_MINOR_VERSION < 40
18+
#if ENGINE_MINOR_VERSION < 4
1919
bool ConvertRAWSurfaceDataToFLinearColor(EPixelFormat Format, uint32 Width, uint32 Height, uint8 *In, uint32 SrcPitch, FLinearColor* Out, FReadSurfaceDataFlags InFlags);
2020
#endif
2121

@@ -275,8 +275,7 @@ void UBH_GameRecorder::CaptureFrame()
275275
TextureCreateDesc.SetInitialState(ERHIAccess::CPURead);
276276
TextureCreateDesc.SetFlags(ETextureCreateFlags::CPUReadback);
277277

278-
#if ENGINE_MINOR_VERSION >= 40
279-
FRHICommandListImmediate& RHICmdList = FRHICommandListExecutor::GetImmediateCommandList();
278+
#if ENGINE_MINOR_VERSION >= 4
280279
StagingTexture = GDynamicRHI->RHICreateTexture(RHICmdList, TextureCreateDesc);
281280
#else
282281
StagingTexture = RHICreateTexture(TextureCreateDesc);
@@ -364,7 +363,7 @@ FString UBH_GameRecorder::CaptureScreenshotToJPG(const FString& Filename)
364363
return ScreenshotFilename;
365364
}
366365

367-
#if ENGINE_MINOR_VERSION < 40
366+
#if ENGINE_MINOR_VERSION < 4
368367
bool ConvertRAWSurfaceDataToFLinearColor(EPixelFormat Format, uint32 Width, uint32 Height, uint8 *In, uint32 SrcPitch, FLinearColor* Out, FReadSurfaceDataFlags InFlags)
369368
{
370369
// InFlags.GetLinearToGamma() is ignored by the FLinearColor reader

Source/BetaHubBugReporter/Private/BH_PopupWidget.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
#include "CoreMinimal.h"
66
#include "Blueprint/UserWidget.h"
77
#include "Components/TextBlock.h"
8+
#include "Components/Button.h"
89
#include "BH_PopupWidget.generated.h"
910

1011
/**

0 commit comments

Comments
 (0)