Commit bd7fd7f9 by Geoff Lang

Fix an incorrect iteration over EGL attributes.

BUG=angle:490 Change-Id: If7a86ee0a5226f2b45e26bbadf4a84f8f605d1c2 Reviewed-on: https://chromium-review.googlesource.com/227231Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarGeoff Lang <geofflang@chromium.org>
parent 980eb8f3
...@@ -15,7 +15,7 @@ AttributeMap::AttributeMap() ...@@ -15,7 +15,7 @@ AttributeMap::AttributeMap()
AttributeMap::AttributeMap(const EGLint *attributes) AttributeMap::AttributeMap(const EGLint *attributes)
{ {
for (const EGLint *curAttrib = attributes; curAttrib[0] != EGL_NONE; curAttrib++) for (const EGLint *curAttrib = attributes; curAttrib[0] != EGL_NONE; curAttrib += 2)
{ {
insert(curAttrib[0], curAttrib[1]); insert(curAttrib[0], curAttrib[1]);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment