From 6599ceddec330cbc6fb5b86e426d1312efae3494 Mon Sep 17 00:00:00 2001 From: deve Date: Mon, 10 Apr 2017 06:15:01 +0200 Subject: [PATCH] Fixed server only build --- src/graphics/material.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/graphics/material.cpp b/src/graphics/material.cpp index 651fb91e6..57878c9bc 100644 --- a/src/graphics/material.cpp +++ b/src/graphics/material.cpp @@ -1011,6 +1011,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m { m->MaterialType = video::EMT_TRANSPARENT_ALPHA_CHANNEL_REF; +#ifndef SERVER_ONLY // A hack that makes the grass more bright in legacy pipeline, so that // it looks more similar to our shader-based pipeline if (!CVS->isGLSL()) @@ -1020,6 +1021,7 @@ void Material::setMaterialProperties(video::SMaterial *m, scene::IMeshBuffer* m m->EmissiveColor = video::SColor(255, 150, 150, 150); m->SpecularColor = video::SColor(255, 150, 150, 150); } +#endif } if (m_disable_z_write)