diff options
author | sfan5 <sfan5@live.de> | 2021-11-19 19:27:47 +0100 |
---|---|---|
committer | sfan5 <sfan5@live.de> | 2021-11-19 19:34:53 +0100 |
commit | 6779cb7254cf6d08652a49ac1e5be23cd5131f8a (patch) | |
tree | 451021965602f2a97c34601e8cea3468b98a7944 /source/Irrlicht/COpenGLDriver.cpp | |
parent | 39cad3e6180b25318b215182f931dff9a378ed67 (diff) | |
download | irrlicht-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.cpp | 3 |
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();
|