зеркало из https://github.com/AvaloniaUI/angle.git
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:
Родитель
72196b74f0
Коммит
c07c43e43f
|
@ -167,12 +167,17 @@ bool EGLWindow::initializeGL(OSWindow *osWindow)
|
|||
surfaceAttributes.push_back(EGL_NONE);
|
||||
|
||||
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)
|
||||
{
|
||||
destroyGL();
|
||||
return false;
|
||||
}
|
||||
ASSERT(mSurface != EGL_NO_SURFACE);
|
||||
|
||||
EGLint contextAttibutes[] =
|
||||
{
|
||||
|
|
Загрузка…
Ссылка в новой задаче