mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 13:23:56 -07:00
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. |
||
|---|---|---|
| .. | ||
| test_Color.h | ||
| test_LOSTexture.h | ||
| test_MeshManager.h | ||
| test_ShaderManager.h | ||
| test_Terrain.h | ||
| test_TextureConverter.h | ||
| test_TextureManager.h | ||