Merge commit 'a8f2c2b428f5f261c7c95b6b19404b05f0b30762' into eclair-mr2-plus-aosp * commit 'a8f2c2b428f5f261c7c95b6b19404b05f0b30762': Fix texture upload bug for narrow texture of less than 32bpp.
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user