From 27d2daabc15d114229d1b19e53b7fdf1cc658f92 Mon Sep 17 00:00:00 2001 From: "glassmancody.info" Date: Tue, 8 Feb 2022 14:12:17 -0800 Subject: [PATCH] move depth define to header, missing on mac --- components/sceneutil/depth.cpp | 4 ---- components/sceneutil/depth.hpp | 4 ++++ 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/components/sceneutil/depth.cpp b/components/sceneutil/depth.cpp index 5d53b97726..ee95f8c7ec 100644 --- a/components/sceneutil/depth.cpp +++ b/components/sceneutil/depth.cpp @@ -6,10 +6,6 @@ #include -#ifndef GL_DEPTH32F_STENCIL8_NV -#define GL_DEPTH32F_STENCIL8_NV 0x8DAC -#endif - namespace SceneUtil { void setCameraClearDepth(osg::Camera* camera) diff --git a/components/sceneutil/depth.hpp b/components/sceneutil/depth.hpp index 11a863ef7a..1f4ba55297 100644 --- a/components/sceneutil/depth.hpp +++ b/components/sceneutil/depth.hpp @@ -5,6 +5,10 @@ #include "util.hpp" +#ifndef GL_DEPTH32F_STENCIL8_NV +#define GL_DEPTH32F_STENCIL8_NV 0x8DAC +#endif + namespace SceneUtil { // Sets camera clear depth to 0 if reversed depth buffer is in use, 1 otherwise.