Skip to content
Commit c5e0a295 authored by Lu, Shenghua's avatar Lu, Shenghua Committed by Shuo Gao
Browse files

update parameters in uploadToTexture() for GLES20



Google optimized the uploadToTexture with GLES3.0+,
This allows us to upload a sub-rectangle of texture,
but this has compliance issue with GLES 2.0.

With OpenGL ES 2.0 we need to copy the bitmap in a
temporary buffer if the stride doesn't match the width,
and then upload entire temporary stripes.

Change-Id: I8987cd8347913c61b7fa45bd47be1189aa6bdb05
Signed-off-by: default avatarShenghua Lu <shenghua.lu@intel.com>
Signed-off-by: default avatarShuo Gao <shuo.gao@intel.com>
Signed-off-by: default avatarGuobin <Zhang&lt;guobin.zhang@intel.com>
parent 77d28ca2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment