Skip to content

Commit

Permalink
Minor optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
slonopotamus committed Jul 26, 2024
1 parent c2c4ebd commit ed1d795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/EffectBox/Private/SEffectBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void SEffectBox::Construct(const FArguments& Args)
if (CVarEnableEffectBox.GetValueOnGameThread())
{
WidgetRenderer = new FWidgetRenderer(true);
if (auto* RT = WidgetRenderer->CreateTargetFor(FVector2D(1, 1), TF_Bilinear, true))
if (auto* RT = WidgetRenderer->CreateTargetFor(FVector2D::UnitVector, TF_Bilinear, true))
{
RenderTarget.Reset(RT);
SurfaceBrush.SetResourceObject(RT);
Expand Down

0 comments on commit ed1d795

Please sign in to comment.