mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-22 09:06:35 +00:00
e79adae921
For unknown reasons, sometimes glTexSubImage2D acts as if GL_UNPACK_ALIGNMENT = 2 or 4, instead of 1. This causes the odd-sized array uploaded for the LOS texture to be interpreted incorrectly, and the LOS texture gets rendered very incorrectly. Pad the array to a multiple of 4 in all cases, so that GL_UNPACK_ALIGNMENT shouldn't affect it. Hopefully fixes #2594. This was SVN commit r15216.