mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:57:34 +02:00
Removed compilation warnings on Mac and Ubuntu
This commit is contained in:
parent
d3add89b3c
commit
055270df9c
3 changed files with 1 additions and 3 deletions
|
@ -41,7 +41,6 @@ void BloomThreshold::run(const render::RenderContextPointer& renderContext, cons
|
|||
assert(inputFrameBuffer->hasColor());
|
||||
|
||||
auto inputBuffer = inputFrameBuffer->getRenderBuffer(0);
|
||||
auto sourceViewport = args->_viewport;
|
||||
auto bufferSize = glm::ivec2(inputBuffer->getDimensions());
|
||||
|
||||
if (!_outputBuffer || _outputBuffer->getSize() != inputFrameBuffer->getSize()) {
|
||||
|
|
|
@ -82,7 +82,7 @@ void BlurParams::setFilterGaussianTaps(int numHalfTaps, float sigma) {
|
|||
const int numTaps = 2 * numHalfTaps + 1;
|
||||
assert(numTaps <= BLUR_MAX_NUM_TAPS);
|
||||
assert(sigma > 0.0f);
|
||||
const float inverseTwoSigmaSquared = float(0.5 / (sigma*sigma));
|
||||
const float inverseTwoSigmaSquared = float(0.5 / double(sigma*sigma));
|
||||
float totalWeight = 1.0f;
|
||||
float weight;
|
||||
float offset;
|
||||
|
|
|
@ -61,7 +61,6 @@ void HalfDownsample::run(const RenderContextPointer& renderContext, const gpu::F
|
|||
_pipeline = gpu::Pipeline::create(program, state);
|
||||
}
|
||||
|
||||
const auto sourceSize = sourceFramebuffer->getSize();
|
||||
const auto bufferSize = resampledFrameBuffer->getSize();
|
||||
glm::ivec4 viewport{ 0, 0, bufferSize.x, bufferSize.y };
|
||||
|
||||
|
|
Loading…
Reference in a new issue