diff --git a/src/rendering/framebufferrenderer.cpp b/src/rendering/framebufferrenderer.cpp index 6c85a386ac..d2fbfd3ffa 100644 --- a/src/rendering/framebufferrenderer.cpp +++ b/src/rendering/framebufferrenderer.cpp @@ -517,10 +517,10 @@ void FramebufferRenderer::updateDownscaleTextures() { 0, GL_RGBA32F, static_cast( - _resolution.x * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.x * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), static_cast( - _resolution.y * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.y * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), 0, GL_RGBA, @@ -538,10 +538,10 @@ void FramebufferRenderer::updateDownscaleTextures() { 0, GL_DEPTH_COMPONENT32F, static_cast( - _resolution.x * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.x * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), static_cast( - _resolution.y * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.y * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), 0, GL_DEPTH_COMPONENT, @@ -846,10 +846,10 @@ void FramebufferRenderer::updateResolution() { 0, GL_RGBA32F, static_cast( - _resolution.x * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.x * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), static_cast( - _resolution.y * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.y * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), 0, GL_RGBA, @@ -878,10 +878,10 @@ void FramebufferRenderer::updateResolution() { 0, GL_DEPTH_COMPONENT32F, static_cast( - _resolution.x * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.x * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), static_cast( - _resolution.y * _downscaleVolumeRendering.currentDownscaleFactor + glm::max(_resolution.y * _downscaleVolumeRendering.currentDownscaleFactor, 1.f) ), 0, GL_DEPTH_COMPONENT,