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
This commit is contained in:
parent
da4fcc494c
commit
b493cb4497
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user