Fix loading of RGB screenspace images

This commit is contained in:
Alexander Bock
2017-10-11 09:13:20 -04:00
parent 06550ea42f
commit 5ccc200258
2 changed files with 8 additions and 1 deletions
@@ -131,7 +131,10 @@ void ScreenSpaceImageOnline::update() {
);
if (texture) {
// LDEBUG("Loaded texture from '" << absPath(_texturePath) << "'");
// Images don't need to start on 4-byte boundaries, for example if the
// image is only RGB
glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
texture->uploadTexture();
// Textures of planets looks much smoother with AnisotropicMipMap rather than linear