Include TILE_MATERIAL_OPAQUE in shaders header (#6086)
authorstujones11 <stujones111@gmail.com>
Sat, 1 Jul 2017 16:01:07 +0000 (17:01 +0100)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Sat, 1 Jul 2017 16:01:07 +0000 (18:01 +0200)
src/shader.cpp

index 4f482fddbb4d0b7f1c3a9f49514ebc84fd1f9182..ac0745cb40fe7820866cf6b86f0bdd17c4c20139 100644 (file)
@@ -639,7 +639,7 @@ ShaderInfo generate_shader(const std::string &name, u8 material_type, u8 drawtyp
                "TILE_MATERIAL_OPAQUE"
        };
 
-       for (int i = 0; i < 6; i++){
+       for (int i = 0; i < 7; i++){
                shaders_header += "#define ";
                shaders_header += materialTypes[i];
                shaders_header += " ";