1
0
forked from mirrors/0ad
Files
0ad/source/graphics
Ykkrosh 21f3be7df5 Always select a texture unit before calling glEnable(GL_TEXTURE_2D).
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.
2015-02-21 21:40:10 +00:00
..
2014-07-06 16:35:41 +00:00
2014-07-03 01:00:25 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2015-01-24 14:46:52 +00:00
2014-07-03 01:00:25 +00:00
2015-01-28 00:48:00 +00:00
2015-01-28 00:48:00 +00:00
2014-07-03 01:00:25 +00:00