Add storage alignment fix for opengles2.0 for iOS
R=tkchin@webrtc.org
Review URL: https://webrtc-codereview.appspot.com/40179004
Patch from Iurii Shevchuk <youwrk@gmail.com>.
Cr-Commit-Position: refs/heads/master@{#8764}
git-svn-id: http://webrtc.googlecode.com/svn/trunk@8764 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/video_render/ios/open_gles20.mm b/webrtc/modules/video_render/ios/open_gles20.mm
index 9dfa69d..1b7a6d1 100644
--- a/webrtc/modules/video_render/ios/open_gles20.mm
+++ b/webrtc/modules/video_render/ios/open_gles20.mm
@@ -249,6 +249,7 @@
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE);
glTexParameterf(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
+ glPixelStorei(GL_UNPACK_ALIGNMENT, 1);
glTexImage2D(GL_TEXTURE_2D,
0,
GL_LUMINANCE,