Remove window size hack

#jira none
#rb none
[FYI] Michael.Sartian

#ROBOMERGE-SOURCE: CL 15502110 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v771-15082668)

[CL 15503755 by brandon schaefer in ue5-main branch]
This commit is contained in:
brandon schaefer
2021-02-23 15:17:11 -04:00
parent b1e85b63bd
commit 16d0451f59
@@ -510,30 +510,6 @@ static void GetBestFullscreenResolution( SDL_HWindow hWnd, int32 *pWidth, int32
void FLinuxWindow::ReshapeWindow( int32 NewX, int32 NewY, int32 NewWidth, int32 NewHeight )
{
// Some vulkan video drivers have issues with specific height ranges causing them to corrupt the texture rendered
// Moving these nearest values removes this corruption.
static bool bDisableVulkanWorkaround = FParse::Param(FCommandLine::Get(), TEXT("disablevulkanworkaround"));
if (!bDisableVulkanWorkaround)
{
if (NewHeight >= 9 && NewHeight <= 10)
{
NewHeight = 11;
}
else if (NewHeight >= 17 && NewHeight <= 21)
{
NewHeight = 22;
}
else if (NewHeight >= 33 && NewHeight <= 43)
{
NewHeight = 44;
}
else if (NewHeight >= 65 && NewHeight <= 85)
{
NewHeight = 86;
}
}
// If we have set our self to 0,0 Width/Height it will not be allowed we will still show the window
// this is a work around to at least reduce the visibile impact of a window that is lingering
NewWidth = FMath::Max(NewWidth, 1);