Skip to content
Permalink
Browse files

- fix bloom pass regression

  • Loading branch information...
dpjudas committed Apr 7, 2019
1 parent c28e56f commit d1378364b57b40e7b273153f94aeeeeabaceea53
Showing with 4 additions and 1 deletion.
  1. +4 −1 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;
}

0 comments on commit d137836

Please sign in to comment.
You can’t perform that action at this time.