Commit 59656899 by Geoff Lang Committed by Commit Bot

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/+/2246322Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org>
parent 20dbfdd9
...@@ -438,6 +438,9 @@ egl::ConfigSet DisplayEGL::generateConfigs() ...@@ -438,6 +438,9 @@ egl::ConfigSet DisplayEGL::generateConfigs()
&config.colorComponentType, "EGL_EXT_pixel_format_float", &config.colorComponentType, "EGL_EXT_pixel_format_float",
EGL_COLOR_COMPONENT_TYPE_FIXED_EXT); 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) if (config.colorBufferType == EGL_RGB_BUFFER)
{ {
ASSERT(config.colorComponentType == EGL_COLOR_COMPONENT_TYPE_FIXED_EXT); ASSERT(config.colorComponentType == EGL_COLOR_COMPONENT_TYPE_FIXED_EXT);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment