Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,8 @@ void AMV_SpectatorWindowActor::OnSlateRendered(SWindow & SlateWindow, void * Vie
GraphicsPSOInit.BoundShaderState.PixelShaderRHI = GETSAFERHISHADER_PIXEL(*PixelShader);
GraphicsPSOInit.PrimitiveType = PT_TriangleList;

//SetGraphicsPipelineState(RHICmdList, GraphicsPSOInit);
RHICmdList.SetGraphicsPipelineState(GetAndOrCreateGraphicsPipelineState(RHICmdList, GraphicsPSOInit, EApplyRendertargetOption::CheckApply));
SetGraphicsPipelineState(RHICmdList, GraphicsPSOInit);
//RHICmdList.SetGraphicsPipelineState(GetAndOrCreateGraphicsPipelineState(RHICmdList, GraphicsPSOInit, EApplyRendertargetOption::CheckApply));

PixelShader->SetParameters(RHICmdList, TStaticSamplerState<SF_Bilinear>::GetRHI(), ViewportBackBuffer);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@

#include "CoreMinimal.h"
#include "GameFramework/Actor.h"
#include "Runtime/RHI/Public/RHI.h"
#include "Runtime/SlateCore/Public/Widgets/SWindow.h"
#include "Runtime/Engine/Classes/Engine/Texture2D.h"
#include "MV_SpectatorWindowActor.generated.h"

class UTexture2D;
Expand Down
2 changes: 1 addition & 1 deletion SpectatorWindow.uproject
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"FileVersion": 3,
"EngineAssociation": "4.17",
"EngineAssociation": "4.18",
"Category": "",
"Description": "",
"Modules": [
Expand Down