1
0
forked from 0ad/0ad

Unbind the correct texture slot in SkyManager

Wrong binding pair was introduced in 779a33ee30.

Patch By: linkmauve
Differential Revision: https://code.wildfiregames.com/D2487
This was SVN commit r23263.
This commit is contained in:
Vladislav Belov 2019-12-19 21:41:01 +00:00
parent 4171d62d1b
commit e1cf1e16b9
2 changed files with 2 additions and 1 deletions

View File

@ -136,6 +136,7 @@
{"nick": "lafferjm", "name": "Justin Lafferty"},
{"nick": "LeanderH", "name": "Leander Hemelhof"},
{"nick": "leper", "name": "Georg Kilzer"},
{"nick": "Link Mauve", "name": "Emmanuel Gil Peyrot"},
{"nick": "LittleDev"},
{"nick": "livingaftermidnight", "name": "Will Dull"},
{"nick": "Louhike"},

View File

@ -143,7 +143,7 @@ void SkyManager::LoadSkyTextures()
#else
glTexParameteri(GL_TEXTURE_CUBE_MAP, GL_TEXTURE_WRAP_R, GL_CLAMP_TO_EDGE);
#endif
glBindTexture(GL_TEXTURE_2D, 0);
glBindTexture(GL_TEXTURE_CUBE_MAP, 0);
///////////////////////////////////////////////////////////////////////////
}