aboutsummaryrefslogtreecommitdiff
path: root/src/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game.cpp')
-rw-r--r--src/game.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 0c7d15d0c..4f2d6650d 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -807,7 +807,12 @@ public:
// Normal map texture layer
int layer = 1;
+ // before 1.8 there isn't a "integer interface", only float
+#if (IRRLICHT_VERSION_MAJOR == 1 && IRRLICHT_VERSION_MINOR < 8)
services->setPixelShaderConstant("normalTexture" , (irr::f32*)&layer, 1);
+#else
+ services->setPixelShaderConstant("normalTexture" , (irr::s32*)&layer, 1);
+#endif
}
};