aboutsummaryrefslogtreecommitdiff
path: root/source/Irrlicht/COpenGLDriver.cpp
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2021-11-19 19:27:47 +0100
committersfan5 <sfan5@live.de>2021-11-19 19:34:53 +0100
commit6779cb7254cf6d08652a49ac1e5be23cd5131f8a (patch)
tree451021965602f2a97c34601e8cea3468b98a7944 /source/Irrlicht/COpenGLDriver.cpp
parent39cad3e6180b25318b215182f931dff9a378ed67 (diff)
downloadirrlicht-6779cb7254cf6d08652a49ac1e5be23cd5131f8a.tar.xz
Unconditionally load first texture matrix in OpenGL driver
This used to work in Irrlicht 1.8 and I tried to figure out why it no longer did, but failed. fixes minetest/minetest#11206
Diffstat (limited to 'source/Irrlicht/COpenGLDriver.cpp')
-rw-r--r--source/Irrlicht/COpenGLDriver.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/Irrlicht/COpenGLDriver.cpp b/source/Irrlicht/COpenGLDriver.cpp
index 454f0e3..5315232 100644
--- a/source/Irrlicht/COpenGLDriver.cpp
+++ b/source/Irrlicht/COpenGLDriver.cpp
@@ -2730,7 +2730,8 @@ void COpenGLDriver::setTextureRenderStates(const SMaterial& material, bool reset
{
CacheHandler->setActiveTexture(GL_TEXTURE0 + i);
- if (fixedPipeline)
+ // Minetest uses the first texture matrix even with the programmable pipeline
+ if (fixedPipeline || i == 0)
{
const bool isRTT = tmpTexture->isRenderTarget();