mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 19:13:38 +02:00
OSX warnings
This commit is contained in:
parent
2ef87557fc
commit
eb21b9c5d7
3 changed files with 9 additions and 4 deletions
libraries
|
@ -45,7 +45,6 @@ const glm::vec3 DEFAULT_LOCAL_AABOX_CORNER(-0.5f);
|
|||
const glm::vec3 DEFAULT_LOCAL_AABOX_SCALE(1.0f);
|
||||
|
||||
const QString AvatarData::FRAME_NAME = "com.highfidelity.recording.AvatarData";
|
||||
static std::once_flag frameTypeRegistration;
|
||||
|
||||
AvatarData::AvatarData() :
|
||||
SpatiallyNestable(NestableType::Avatar, QUuid()),
|
||||
|
|
|
@ -334,7 +334,7 @@ public:
|
|||
|
||||
/// Returns the instructions for rendering of faces
|
||||
DrawingInstructions Instructions(PrimitiveType primitive) const {
|
||||
DrawingInstructions instr = this->MakeInstructions();
|
||||
DrawingInstructions instr = MakeInstructions();
|
||||
DrawOperation operation;
|
||||
operation.method = DrawOperation::Method::DrawElements;
|
||||
operation.mode = primitive;
|
||||
|
@ -342,8 +342,8 @@ public:
|
|||
operation.count = _prim_count * 3;
|
||||
operation.restart_index = DrawOperation::NoRestartIndex();
|
||||
operation.phase = 0;
|
||||
this->AddInstruction(instr, operation);
|
||||
return std::move(instr);
|
||||
AddInstruction(instr, operation);
|
||||
return instr;
|
||||
}
|
||||
|
||||
/// Returns the instructions for rendering of faces
|
||||
|
|
|
@ -28,7 +28,11 @@
|
|||
#ifdef _WIN32
|
||||
#pragma warning(push)
|
||||
#pragma warning( disable : 4068 )
|
||||
#elif defined(Q_OS_MAC)
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wpessimizing-move"
|
||||
#endif
|
||||
|
||||
#include <oglplus/gl.hpp>
|
||||
|
||||
#include <oglplus/all.hpp>
|
||||
|
@ -40,6 +44,8 @@
|
|||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#elif defined(Q_OS_MAC)
|
||||
#pragma clang diagnostic pop
|
||||
#endif
|
||||
|
||||
#include "NumericalConstants.h"
|
||||
|
|
Loading…
Reference in a new issue