mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 15:23:56 +02:00
fix bad oglplus pragma warnings
This commit is contained in:
parent
17a3fd159a
commit
387c4fbd92
1 changed files with 9 additions and 0 deletions
|
@ -24,6 +24,11 @@
|
|||
#define OGLPLUS_NO_SITE_CONFIG 1
|
||||
#define OGLPLUS_LOW_PROFILE 1
|
||||
|
||||
// NOTE: oglplus does some naked "#pragma GCC" without proper platform wrapping, so we need to disable this warning.
|
||||
#ifdef _WIN32
|
||||
#pragma warning(push)
|
||||
#pragma warning( disable : 4068 )
|
||||
#endif
|
||||
#include <oglplus/gl.hpp>
|
||||
|
||||
#include <oglplus/all.hpp>
|
||||
|
@ -34,6 +39,10 @@
|
|||
#include <oglplus/shapes/wrapper.hpp>
|
||||
#include <oglplus/shapes/plane.hpp>
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(pop)
|
||||
#endif
|
||||
|
||||
#include "NumericalConstants.h"
|
||||
|
||||
using FramebufferPtr = std::shared_ptr<oglplus::Framebuffer>;
|
||||
|
|
Loading…
Reference in a new issue