Fix Vulkan crash when using Blur Panel in Screen Space canvas
This commit is contained in:
@@ -36,7 +36,8 @@ protected:
|
||||
_parent = parent;
|
||||
_format = format;
|
||||
_msaa = msaa;
|
||||
LastRenderTime = &parent->LastRenderTime;
|
||||
if (parent)
|
||||
LastRenderTime = &parent->LastRenderTime;
|
||||
}
|
||||
|
||||
public:
|
||||
|
||||
@@ -1053,10 +1053,10 @@ void DrawBatch(int32 startIndex, int32 count)
|
||||
}
|
||||
|
||||
// Skip if no chance to render anything
|
||||
renderTargetWidth = Math::AlignDown(renderTargetWidth, 4);
|
||||
renderTargetHeight = Math::AlignDown(renderTargetHeight, 4);
|
||||
if (renderTargetWidth <= 0 || renderTargetHeight <= 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Get temporary textures
|
||||
auto desc = GPUTextureDescription::New2D(renderTargetWidth, renderTargetHeight, PS_Blur_Format);
|
||||
|
||||
Reference in New Issue
Block a user