3
0
Fork 0
mirror of https://github.com/lubosz/overte.git synced 2025-04-12 10:02:25 +02:00

Fix warnings on mac and ubuntu

This commit is contained in:
Olivier Prat 2018-02-23 19:37:12 +01:00
parent c935111c43
commit 37fdf81f1b
5 changed files with 7 additions and 8 deletions
libraries

View file

@ -185,6 +185,8 @@ GLenum GLTexelFormat::evalGLTexelFormatInternal(const gpu::Element& dstFormat) {
break;
case gpu::NUINT32:
case gpu::NINT32:
case gpu::NUINT2:
case gpu::NINT2_10_10_10:
case gpu::COMPRESSED:
case gpu::NUM_TYPES: // quiet compiler
Q_UNREACHABLE();
@ -663,6 +665,8 @@ GLTexelFormat GLTexelFormat::evalGLTexelFormat(const Element& dstFormat, const E
break;
case gpu::NUINT32:
case gpu::NINT32:
case gpu::NUINT2:
case gpu::NINT2_10_10_10:
case gpu::COMPRESSED:
case gpu::NUM_TYPES: // quiet compiler
Q_UNREACHABLE();

View file

@ -42,8 +42,6 @@ Batch::Batch(const char* name) {
if (name) {
_name = name;
}
#else
(void*)name;
#endif
_commands.reserve(_commandsMax);
_commandOffsets.reserve(_commandOffsetsMax);

View file

@ -98,8 +98,9 @@ Buffer::Update::Update(const Buffer& parent) : buffer(parent) {
void Buffer::Update::apply() const {
// Make sure we're loaded in order
auto applyUpdateCount = ++buffer._applyUpdateCount;
assert(applyUpdateCount == updateNumber);
buffer._applyUpdateCount++;
assert(buffer._applyUpdateCount == updateNumber);
const auto pageSize = buffer._pages._pageSize;
buffer._renderSysmem.resize(size);
buffer._renderPages.accommodate(size);

View file

@ -189,9 +189,6 @@ public:
private:
// Uniforms for AA
gpu::int32 _texcoordOffsetLoc;
gpu::FramebufferSwapChainPointer _antialiasingBuffers;
gpu::TexturePointer _antialiasingTextures[2];

View file

@ -18,7 +18,6 @@
const int VelocityBufferPass_FrameTransformSlot = 0;
const int VelocityBufferPass_DepthMapSlot = 0;
const int VelocityBufferPass_NormalMapSlot = 1;
#include "velocityBuffer_cameraMotion_frag.h"