1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-11-06 18:25:21 +01:00

Remove unused drawtype shader constant

might lead to better material merging
This commit is contained in:
sfan5
2025-10-24 15:53:19 +02:00
parent 04a443e392
commit 4b41e20000
2 changed files with 2 additions and 22 deletions

View File

@@ -791,7 +791,7 @@ u32 IShaderSource::getShader(const std::string &name,
{
ShaderConstants input_const;
input_const["MATERIAL_TYPE"] = (int)material_type;
input_const["DRAWTYPE"] = (int)drawtype;
(void) drawtype; // unused
video::E_MATERIAL_TYPE base_mat = video::EMT_SOLID;
switch (material_type) {