Commit 1f67547b by Corentin Wallez

EGLWindow: remove redundant EGL_NONE to finish attrib list.

Only one EGL_NONE is needed to signal the end of the list. BUG=angleproject:892 Change-Id: I7de349bef9d674344ccd1b2c4801d8b42c801299 Reviewed-on: https://chromium-review.googlesource.com/271157Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent e897cecf
...@@ -170,7 +170,6 @@ bool EGLWindow::initializeGL(OSWindow *osWindow) ...@@ -170,7 +170,6 @@ bool EGLWindow::initializeGL(OSWindow *osWindow)
} }
surfaceAttributes.push_back(EGL_NONE); surfaceAttributes.push_back(EGL_NONE);
surfaceAttributes.push_back(EGL_NONE);
mSurface = eglCreateWindowSurface(mDisplay, mConfig, osWindow->getNativeWindow(), &surfaceAttributes[0]); mSurface = eglCreateWindowSurface(mDisplay, mConfig, osWindow->getNativeWindow(), &surfaceAttributes[0]);
if (eglGetError() != EGL_SUCCESS) if (eglGetError() != EGL_SUCCESS)
......
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