Fix BlurPanel rendering

Fixes #192
This commit is contained in:
Wojtek Figat
2021-02-03 21:52:29 +01:00
parent a572e581e5
commit ba0f07b57e

View File

@@ -967,7 +967,7 @@ void DrawBatch(int32 startIndex, int32 count)
// Downscale (or not) and extract the background image for the blurring
Context->ResetRenderTarget();
Context->SetRenderTarget(blurA->View());
Context->SetViewport((float)renderTargetWidth, (float)renderTargetHeight);
Context->SetViewportAndScissors((float)renderTargetWidth, (float)renderTargetHeight);
Context->BindSR(0, Output);
Context->SetState(CurrentPso->PS_Downscale);
Context->DrawFullscreenTriangle();