mirror of
https://github.com/OpenMW/openmw.git
synced 2025-02-21 07:09:42 +00:00
move depth define to header, missing on mac
This commit is contained in:
parent
a05e029aa0
commit
27d2daabc1
2 changed files with 4 additions and 4 deletions
|
@ -6,10 +6,6 @@
|
||||||
|
|
||||||
#include <components/settings/settings.hpp>
|
#include <components/settings/settings.hpp>
|
||||||
|
|
||||||
#ifndef GL_DEPTH32F_STENCIL8_NV
|
|
||||||
#define GL_DEPTH32F_STENCIL8_NV 0x8DAC
|
|
||||||
#endif
|
|
||||||
|
|
||||||
namespace SceneUtil
|
namespace SceneUtil
|
||||||
{
|
{
|
||||||
void setCameraClearDepth(osg::Camera* camera)
|
void setCameraClearDepth(osg::Camera* camera)
|
||||||
|
|
|
@ -5,6 +5,10 @@
|
||||||
|
|
||||||
#include "util.hpp"
|
#include "util.hpp"
|
||||||
|
|
||||||
|
#ifndef GL_DEPTH32F_STENCIL8_NV
|
||||||
|
#define GL_DEPTH32F_STENCIL8_NV 0x8DAC
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace SceneUtil
|
namespace SceneUtil
|
||||||
{
|
{
|
||||||
// Sets camera clear depth to 0 if reversed depth buffer is in use, 1 otherwise.
|
// Sets camera clear depth to 0 if reversed depth buffer is in use, 1 otherwise.
|
||||||
|
|
Loading…
Reference in a new issue