Commit c07c43e4 by Jamie Madill

Revert "Fix pointer to int conversion warning in EGLWindow.cpp"

Causes a compile error. BUG=angleproject:892 This reverts commit d424da4a. Change-Id: Ieb8bb99d02f7050306974db5dab72d26474891ac Reviewed-on: https://chromium-review.googlesource.com/268996Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Tested-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 72196b74
...@@ -167,12 +167,17 @@ bool EGLWindow::initializeGL(OSWindow *osWindow) ...@@ -167,12 +167,17 @@ 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