From b493cb449772fa9d2e5e6b0e008216e6e657b83e Mon Sep 17 00:00:00 2001 From: "tkchin@webrtc.org" Date: Tue, 17 Mar 2015 20:18:15 +0000 Subject: [PATCH] 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 . Cr-Commit-Position: refs/heads/master@{#8764} git-svn-id: http://webrtc.googlecode.com/svn/trunk@8764 4adac7df-926f-26a2-2b94-8c16560cd09d --- webrtc/modules/video_render/ios/open_gles20.mm | 1 + 1 file changed, 1 insertion(+) diff --git a/webrtc/modules/video_render/ios/open_gles20.mm b/webrtc/modules/video_render/ios/open_gles20.mm index 9dfa69d1b..1b7a6d175 100644 --- a/webrtc/modules/video_render/ios/open_gles20.mm +++ b/webrtc/modules/video_render/ios/open_gles20.mm @@ -249,6 +249,7 @@ static void InitializeTexture(int name, int id, int width, int height) { 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,