diff options
Diffstat (limited to 'opengl')
| -rw-r--r-- | opengl/libs/EGL/egl_display.cpp | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/opengl/libs/EGL/egl_display.cpp b/opengl/libs/EGL/egl_display.cpp index 67d69b4d06..a58e87ca3e 100644 --- a/opengl/libs/EGL/egl_display.cpp +++ b/opengl/libs/EGL/egl_display.cpp @@ -158,13 +158,16 @@ static bool addAnglePlatformAttributes(egl_connection_t* const cnx, // NOTE: This is only valid if the backend is OpenGL attrs.push_back(EGL_PLATFORM_ANGLE_EGL_HANDLE_ANGLE); attrs.push_back(vendorEGL); + + // Context virtualization is only available on GL back-end. + // Needed to support threading with GL back-end + attrs.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE); + attrs.push_back(EGL_FALSE); break; default: - ALOGV("%s: Requesting Unknown (%d) ANGLE back-end", __FUNCTION__, cnx->angleBackend); + ALOGE("%s: Requesting Unknown (%d) ANGLE back-end", __FUNCTION__, cnx->angleBackend); break; } - attrs.push_back(EGL_PLATFORM_ANGLE_CONTEXT_VIRTUALIZATION_ANGLE); - attrs.push_back(EGL_FALSE); return true; } |