Commit d424da4a by Corentin Wallez

Fix pointer to int conversion warning in EGLWindow.cpp

BUG=angleproject:892 Change-Id: If6f0eb13bca10f9328faeaab35665a67e7ef6e44 Reviewed-on: https://chromium-review.googlesource.com/269122Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Reviewed-by: 's avatarGeoff Lang <geofflang@chromium.org> Tested-by: 's avatarCorentin Wallez <cwallez@chromium.org>
parent 8ae74e11
...@@ -166,17 +166,12 @@ bool EGLWindow::initializeGL(OSWindow *osWindow) ...@@ -166,17 +166,12 @@ bool EGLWindow::initializeGL(OSWindow *osWindow)
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 (mSurface == EGL_NO_SURFACE)
{
eglGetError(); // Clear error and try again
mSurface = eglCreateWindowSurface(mDisplay, mConfig, NULL, NULL);
}
if (eglGetError() != EGL_SUCCESS) if (eglGetError() != EGL_SUCCESS)
{ {
destroyGL(); destroyGL();
return false; return false;
} }
ASSERT(mSurface != EGL_NO_SURFACE);
EGLint contextAttibutes[] = EGLint contextAttibutes[] =
{ {
......
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