mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-06 02:09:55 +03:00
Fix crash of MultithreadingTest end2end tests.
Extension platformANGLEContextVirtualization is currently only supported in the OpenGL backend, it's confused to validate it when the test is set up by WithNoVirtualContexts(). It'll generate crash when it's not OpenGL backend. Bug: angleproject:5636 Change-Id: Ib04fb4a3d29beaac5162e63af5ef1fd80c8a420c Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2709821 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org> Reviewed-by: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
@@ -159,10 +159,21 @@ bool EGLWindow::initializeDisplay(OSWindow *osWindow,
|
||||
displayAttributes.push_back(params.debugLayersEnabled);
|
||||
}
|
||||
|
||||
const bool hasFeatureVirtualizationANGLE =
|
||||
strstr(extensionString, "EGL_ANGLE_platform_angle_context_virtualization") != nullptr;
|
||||
|
||||
if (params.contextVirtualization != EGL_DONT_CARE)
|
||||
{
|
||||
displayAttributes.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE);
|
||||
displayAttributes.push_back(params.contextVirtualization);
|
||||
if (hasFeatureVirtualizationANGLE)
|
||||
{
|
||||
displayAttributes.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE);
|
||||
displayAttributes.push_back(params.contextVirtualization);
|
||||
}
|
||||
else
|
||||
{
|
||||
fprintf(stderr,
|
||||
"EGL_ANGLE_platform_angle_context_virtualization extension not active\n");
|
||||
}
|
||||
}
|
||||
|
||||
if (params.platformMethods)
|
||||
|
||||
Reference in New Issue
Block a user