diff options
author | Graham Linden <graham@lindenlab.com> | 2019-02-01 09:45:07 -0800 |
---|---|---|
committer | Graham Linden <graham@lindenlab.com> | 2019-02-01 09:45:07 -0800 |
commit | 50b383e5aa333d453e906ae2beb28fe1da549bef (patch) | |
tree | 18564d88a58046499aa3eec3d65300e00e2c9c53 /indra/newview/llviewerdisplay.cpp | |
parent | 2456715a407cc11f3e0077cb3c54e21188e6ec86 (diff) |
Fix issue with OSX shader compiler not implementing #if correctly (nice job, Timmy).
Diffstat (limited to 'indra/newview/llviewerdisplay.cpp')
-rw-r--r-- | indra/newview/llviewerdisplay.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llviewerdisplay.cpp b/indra/newview/llviewerdisplay.cpp index 2d4478bfdb..2445605f19 100644 --- a/indra/newview/llviewerdisplay.cpp +++ b/indra/newview/llviewerdisplay.cpp @@ -157,6 +157,7 @@ void display_startup() LLGLState::checkStates(); LLGLState::checkTextureChannels(); + glClearDepth(1.25f); glClear(GL_DEPTH_BUFFER_BIT | GL_COLOR_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); LLGLSUIDefault gls_ui; gPipeline.disableLights(); @@ -752,6 +753,7 @@ void display(BOOL rebuild, F32 zoom_factor, int subfield, BOOL for_snapshot) LLGLState::checkClientArrays(); } + glClearDepth(1.25f); glClear(GL_DEPTH_BUFFER_BIT | GL_STENCIL_BUFFER_BIT); } |