mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 22:16:58 +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());
|
assert(inputFrameBuffer->hasColor());
|
||||||
|
|
||||||
auto inputBuffer = inputFrameBuffer->getRenderBuffer(0);
|
auto inputBuffer = inputFrameBuffer->getRenderBuffer(0);
|
||||||
auto sourceViewport = args->_viewport;
|
|
||||||
auto bufferSize = glm::ivec2(inputBuffer->getDimensions());
|
auto bufferSize = glm::ivec2(inputBuffer->getDimensions());
|
||||||
|
|
||||||
if (!_outputBuffer || _outputBuffer->getSize() != inputFrameBuffer->getSize()) {
|
if (!_outputBuffer || _outputBuffer->getSize() != inputFrameBuffer->getSize()) {
|
||||||
|
|
|
@ -82,7 +82,7 @@ void BlurParams::setFilterGaussianTaps(int numHalfTaps, float sigma) {
|
||||||
const int numTaps = 2 * numHalfTaps + 1;
|
const int numTaps = 2 * numHalfTaps + 1;
|
||||||
assert(numTaps <= BLUR_MAX_NUM_TAPS);
|
assert(numTaps <= BLUR_MAX_NUM_TAPS);
|
||||||
assert(sigma > 0.0f);
|
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 totalWeight = 1.0f;
|
||||||
float weight;
|
float weight;
|
||||||
float offset;
|
float offset;
|
||||||
|
|
|
@ -61,7 +61,6 @@ void HalfDownsample::run(const RenderContextPointer& renderContext, const gpu::F
|
||||||
_pipeline = gpu::Pipeline::create(program, state);
|
_pipeline = gpu::Pipeline::create(program, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
const auto sourceSize = sourceFramebuffer->getSize();
|
|
||||||
const auto bufferSize = resampledFrameBuffer->getSize();
|
const auto bufferSize = resampledFrameBuffer->getSize();
|
||||||
glm::ivec4 viewport{ 0, 0, bufferSize.x, bufferSize.y };
|
glm::ivec4 viewport{ 0, 0, bufferSize.x, bufferSize.y };
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue