From 0e27b5cadbc9cff87258f14ac40d9c4b365849b3 Mon Sep 17 00:00:00 2001 From: Jason Sams Date: Thu, 5 Nov 2009 12:44:58 -0800 Subject: Fix texture upload bug for narrow texture of less than 32bpp. --- libs/rs/rsAllocation.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libs/rs/rsAllocation.cpp b/libs/rs/rsAllocation.cpp index 38cec64..16029a6 100644 --- a/libs/rs/rsAllocation.cpp +++ b/libs/rs/rsAllocation.cpp @@ -104,6 +104,7 @@ void Allocation::uploadToTexture(uint32_t lodOffset) glGenTextures(1, &mTextureID); } glBindTexture(GL_TEXTURE_2D, mTextureID); + glPixelStorei(GL_UNPACK_ALIGNMENT, 1); Adapter2D adapt(getContext(), this); for(uint32_t lod = 0; (lod + lodOffset) < mType->getLODCount(); lod++) { -- cgit v1.1