diff options
author | sfan5 <sfan5@live.de> | 2022-04-28 20:53:15 +0200 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2022-04-30 16:49:41 +0200 |
commit | a89afe1229e327da3c397a3912b2d43d2196ea2b (patch) | |
tree | 037748c56e51da62b884d7b83dec9ccf5958e06c /src/client/shadows | |
parent | faecff570c48350c599bcf043a7004a52ddf1b39 (diff) | |
download | minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.tar.gz minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.tar.bz2 minetest-a89afe1229e327da3c397a3912b2d43d2196ea2b.zip |
Deal with compiler warnings
Diffstat (limited to 'src/client/shadows')
-rw-r--r-- | src/client/shadows/dynamicshadowsrender.cpp | 6 | ||||
-rw-r--r-- | src/client/shadows/dynamicshadowsrender.h | 1 |
2 files changed, 4 insertions, 3 deletions
diff --git a/src/client/shadows/dynamicshadowsrender.cpp b/src/client/shadows/dynamicshadowsrender.cpp index a008c3e06..07dc6daf2 100644 --- a/src/client/shadows/dynamicshadowsrender.cpp +++ b/src/client/shadows/dynamicshadowsrender.cpp @@ -31,10 +31,12 @@ with this program; if not, write to the Free Software Foundation, Inc., #include "profiler.h" ShadowRenderer::ShadowRenderer(IrrlichtDevice *device, Client *client) : - m_device(device), m_smgr(device->getSceneManager()), - m_driver(device->getVideoDriver()), m_client(client), m_current_frame(0), + m_smgr(device->getSceneManager()), m_driver(device->getVideoDriver()), + m_client(client), m_current_frame(0), m_perspective_bias_xy(0.8), m_perspective_bias_z(0.5) { + (void) m_client; + m_shadows_supported = true; // assume shadows supported. We will check actual support in initialize m_shadows_enabled = true; diff --git a/src/client/shadows/dynamicshadowsrender.h b/src/client/shadows/dynamicshadowsrender.h index bbeb254b0..0e4ef6b70 100644 --- a/src/client/shadows/dynamicshadowsrender.h +++ b/src/client/shadows/dynamicshadowsrender.h @@ -109,7 +109,6 @@ private: void enable() { m_shadows_enabled = m_shadows_supported; } // a bunch of variables - IrrlichtDevice *m_device{nullptr}; scene::ISceneManager *m_smgr{nullptr}; video::IVideoDriver *m_driver{nullptr}; Client *m_client{nullptr}; |