commit | 596568992c2ba0d0988d9e84d7c311489184ed0d | [log] [tgz] |
---|---|---|
author | Geoff Lang <geofflang@chromium.org> | Mon Jun 15 12:48:23 2020 -0400 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jun 15 19:51:17 2020 +0000 |
tree | 4a9b29ccc0a4b8bdcac712f225838639f4201723 | |
parent | 20dbfdd93ef004dec29aecd7361908c73420b009 [diff] |
Don't expose pixmap support from DisplayEGL. BUG=angleproject:4560 BUG=chromium:1094634 Change-Id: Iebab16207eb21175b6d2f1236502bb8a26c43d90 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2246322 Reviewed-by: Jamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/renderer/gl/egl/DisplayEGL.cpp b/src/libANGLE/renderer/gl/egl/DisplayEGL.cpp index 7e3b0ad..cc328a0 100644 --- a/src/libANGLE/renderer/gl/egl/DisplayEGL.cpp +++ b/src/libANGLE/renderer/gl/egl/DisplayEGL.cpp
@@ -438,6 +438,9 @@ &config.colorComponentType, "EGL_EXT_pixel_format_float", EGL_COLOR_COMPONENT_TYPE_FIXED_EXT); + // Pixmaps are not supported on EGL, make sure the config doesn't expose them. + config.surfaceType &= ~EGL_PIXMAP_BIT; + if (config.colorBufferType == EGL_RGB_BUFFER) { ASSERT(config.colorComponentType == EGL_COLOR_COMPONENT_TYPE_FIXED_EXT);