- fix bloom pass regression

This commit is contained in:
Magnus Norddahl 2019-04-07 20:52:04 +02:00
parent c28e56f9e8
commit d1378364b5
1 changed files with 4 additions and 1 deletions

View File

@ -443,7 +443,10 @@ void PPCameraExposure::Render(PPRenderState *renderstate, int sceneWidth, int sc
void PPCameraExposure::UpdateTextures(int width, int height) 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; return;
} }