diff options
author | Jean-Patrick Guerrero <kilbith@users.noreply.github.com> | 2021-03-16 23:28:16 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-16 23:28:16 +0100 |
commit | 285ba74723695c4b51192dac0e1e17c5d8f880db (patch) | |
tree | 5b6147a093f28d01d7a6b9da40770e2c434b1641 /src/client/render | |
parent | 66b5c086644ac18845731d6f3556d9e7cde4ee28 (diff) | |
download | minetest-285ba74723695c4b51192dac0e1e17c5d8f880db.tar.gz minetest-285ba74723695c4b51192dac0e1e17c5d8f880db.tar.bz2 minetest-285ba74723695c4b51192dac0e1e17c5d8f880db.zip |
GUIScene: Clear depth buffer + replace deprecated clearZBuffer calls
Diffstat (limited to 'src/client/render')
-rw-r--r-- | src/client/render/anaglyph.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/render/anaglyph.cpp b/src/client/render/anaglyph.cpp index 9ba4464a2..153e77400 100644 --- a/src/client/render/anaglyph.cpp +++ b/src/client/render/anaglyph.cpp @@ -40,7 +40,7 @@ void RenderingCoreAnaglyph::setupMaterial(int color_mask) void RenderingCoreAnaglyph::useEye(bool right) { RenderingCoreStereo::useEye(right); - driver->clearZBuffer(); + driver->clearBuffers(video::ECBF_DEPTH); setupMaterial(right ? video::ECP_GREEN | video::ECP_BLUE : video::ECP_RED); } |