- fix bloom pass regression

This commit is contained in:
Magnus Norddahl 2019-04-07 20:52:04 +02:00
parent c28e56f9e8
commit d1378364b5

View file

@ -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;
}