Capture/Replay: recreate the EGL window if contexts don't match

In addition enable affected tests.

Bug: angleproject:5955
Change-Id: I4fb72e38a633daa4565d3c0ae7cddb6ace7226f1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2891775
Commit-Queue: Gert Wollny <gert.wollny@collabora.com>
Reviewed-by: Jamie Madill <jmadill@chromium.org>
Reviewed-by: Cody Northrop <cnorthrop@google.com>
This commit is contained in:
Gert Wollny
2021-05-12 12:07:42 +02:00
committed by Commit Bot
parent 2303f19cb0
commit ee2f330203
4 changed files with 14 additions and 1 deletions

View File

@@ -90,6 +90,11 @@ EGLContext EGLWindow::getContext() const
return mContext;
}
bool EGLWindow::isContextVersion(EGLint glesMajorVersion, EGLint glesMinorVersion) const
{
return mClientMajorVersion == glesMajorVersion && mClientMinorVersion == glesMinorVersion;
}
bool EGLWindow::initializeGL(OSWindow *osWindow,
angle::Library *glWindowingLibrary,
angle::GLESDriverType driverType,