diff options
| author | 2009-11-05 17:39:56 -0500 | |
|---|---|---|
| committer | 2009-11-05 17:39:56 -0500 | |
| commit | 902051dfa7590f8b2c22eb0a46df80f1bf19a087 (patch) | |
| tree | 7f49447dfcb82b5e5592c365871e4a77e100762d | |
| parent | 8de4e0ad8ff39d9a397cd80de5155d4c09ef98fd (diff) | |
| parent | 0e27b5cadbc9cff87258f14ac40d9c4b365849b3 (diff) | |
Merge change I0e27b5ca into eclair
* changes:
Fix texture upload bug for narrow texture of less than 32bpp.
| -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 38cec64e3753..16029a6f9c57 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++) { |