mirror of
https://github.com/love2d/love.git
synced 2026-08-20 04:30:09 +02:00
Merge branch 'master' into 12.0-development
This commit is contained in:
@@ -1004,6 +1004,11 @@ void OpenGL::bindTextureToUnit(TextureType target, GLuint texture, int textureun
|
|||||||
else
|
else
|
||||||
state.curTextureUnit = textureunit;
|
state.curTextureUnit = textureunit;
|
||||||
}
|
}
|
||||||
|
else if (!restoreprev && textureunit != state.curTextureUnit)
|
||||||
|
{
|
||||||
|
glActiveTexture(GL_TEXTURE0 + textureunit);
|
||||||
|
state.curTextureUnit = textureunit;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void OpenGL::bindTextureToUnit(Texture *texture, int textureunit, bool restoreprev)
|
void OpenGL::bindTextureToUnit(Texture *texture, int textureunit, bool restoreprev)
|
||||||
|
|||||||
Reference in New Issue
Block a user