From f8fd432dca9f84a489cb7033afc4e4eef7cff49d Mon Sep 17 00:00:00 2001 From: lhofhansl Date: Thu, 3 Nov 2016 19:14:32 -0700 Subject: Add debug priv, and allow player to display the scene as wire-frame. (#4709) --- src/clientmap.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/clientmap.cpp') diff --git a/src/clientmap.cpp b/src/clientmap.cpp index a0a780250..60170ab70 100644 --- a/src/clientmap.cpp +++ b/src/clientmap.cpp @@ -521,6 +521,7 @@ void ClientMap::renderMap(video::IVideoDriver* driver, s32 pass) buf->getMaterial().setFlag(video::EMF_TRILINEAR_FILTER, m_cache_trilinear_filter); buf->getMaterial().setFlag(video::EMF_BILINEAR_FILTER, m_cache_bilinear_filter); buf->getMaterial().setFlag(video::EMF_ANISOTROPIC_FILTER, m_cache_anistropic_filter); + buf->getMaterial().setFlag(video::EMF_WIREFRAME, m_control.show_wireframe); const video::SMaterial& material = buf->getMaterial(); video::IMaterialRenderer* rnd = -- cgit v1.2.3