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:
parent
c935111c43
commit
37fdf81f1b
5 changed files with 7 additions and 8 deletions
libraries
gpu-gl/src/gpu/gl
gpu/src/gpu
render-utils/src
|
@ -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();
|
||||
|
|
|
@ -42,8 +42,6 @@ Batch::Batch(const char* name) {
|
|||
if (name) {
|
||||
_name = name;
|
||||
}
|
||||
#else
|
||||
(void*)name;
|
||||
#endif
|
||||
_commands.reserve(_commandsMax);
|
||||
_commandOffsets.reserve(_commandOffsetsMax);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -189,9 +189,6 @@ public:
|
|||
|
||||
private:
|
||||
|
||||
// Uniforms for AA
|
||||
gpu::int32 _texcoordOffsetLoc;
|
||||
|
||||
gpu::FramebufferSwapChainPointer _antialiasingBuffers;
|
||||
gpu::TexturePointer _antialiasingTextures[2];
|
||||
|
||||
|
|
|
@ -18,7 +18,6 @@
|
|||
|
||||
const int VelocityBufferPass_FrameTransformSlot = 0;
|
||||
const int VelocityBufferPass_DepthMapSlot = 0;
|
||||
const int VelocityBufferPass_NormalMapSlot = 1;
|
||||
|
||||
|
||||
#include "velocityBuffer_cameraMotion_frag.h"
|
||||
|
|
Loading…
Reference in a new issue