forked from mirrors/0ad
21f3be7df5
Without this, some code will enable (and set other parameters for) whatever random texture unit the previous stage had selected. This can break any fixed-function rendering, since either it will not have enabled the correct texture unit, or its correct setup will be interfered with by another texture unit that shouldn't be enabled. (This doesn't affect ARB/GLSL shader rendering, since they don't care about the enabled state, but the GUI (and some debug things) are still FFP in the default ARB mode.) Fixes #2833 (in which the fancy water shader selected texture units 5/6, which then got enabled, and remained enabled forever). This was SVN commit r16372.