From d1378364b57b40e7b273153f94aeeeeabaceea53 Mon Sep 17 00:00:00 2001 From: Magnus Norddahl Date: Sun, 7 Apr 2019 20:52:04 +0200 Subject: [PATCH] - fix bloom pass regression --- src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp index 2fd47d6c4d..d2e128849c 100644 --- a/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp +++ b/src/rendering/hwrenderer/postprocessing/hw_postprocess.cpp @@ -443,7 +443,10 @@ void PPCameraExposure::Render(PPRenderState *renderstate, int sceneWidth, int sc void PPCameraExposure::UpdateTextures(int width, int height) { - if (ExposureLevels.size() > 0 && ExposureLevels[0].Viewport.width == width && ExposureLevels[0].Viewport.height == height) + int firstwidth = MAX(width / 2, 1); + int firstheight = MAX(height / 2, 1); + + if (ExposureLevels.size() > 0 && ExposureLevels[0].Viewport.width == firstwidth && ExposureLevels[0].Viewport.height == firstheight) { return; }