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);