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

Causes a compile error.

BUG=angleproject:892

This reverts commit d424da4a4c.

Change-Id: Ieb8bb99d02f7050306974db5dab72d26474891ac
Reviewed-on: https://chromium-review.googlesource.com/268996
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Tested-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Jamie Madill 2015-05-04 18:20:24 +00:00
Родитель 72196b74f0
Коммит c07c43e43f
1 изменённых файлов: 6 добавлений и 1 удалений

Просмотреть файл

@ -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[] =
{ {