mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fix bloom pass regression
This commit is contained in:
parent
c28e56f9e8
commit
d1378364b5
1 changed files with 4 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue