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
This commit is contained in:
sfan5 2021-11-19 19:27:47 +01:00
parent 39cad3e618
commit 6779cb7254
1 changed files with 2 additions and 1 deletions

View File

@ -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();