diff options
author | Jason Sams <rjsams@android.com> | 2009-11-05 12:44:58 -0800 |
---|---|---|
committer | Jason Sams <rjsams@android.com> | 2009-11-05 12:44:58 -0800 |
commit | 0e27b5cadbc9cff87258f14ac40d9c4b365849b3 (patch) | |
tree | 228b6d6dd83cd2b4739960dac00ee1dc864aecc2 /libs/rs | |
parent | f476c480cdf41be9989c3cfbc3b92038d11e7569 (diff) | |
download | frameworks_base-0e27b5cadbc9cff87258f14ac40d9c4b365849b3.zip frameworks_base-0e27b5cadbc9cff87258f14ac40d9c4b365849b3.tar.gz frameworks_base-0e27b5cadbc9cff87258f14ac40d9c4b365849b3.tar.bz2 |
Fix texture upload bug for narrow texture of less than 32bpp.
Diffstat (limited to 'libs/rs')
-rw-r--r-- | libs/rs/rsAllocation.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
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++) { |