mesa/src/egl
Frank Binns b2c5986ea1 egl: Add eglQuerySurface surface type check for EGL_LARGEST_PBUFFER attrib
Calling eglQuerySurface on a window or pixmap with the EGL_LARGEST_PBUFFER
attribute resulted in the contents of the 'value' parameter being modified.
This is the wrong behaviour according to the EGL spec, which states:

    "Querying EGL_LARGEST_PBUFFER for a pbuffer surface returns the
     same attribute value specified when the surface was created with
     eglCreatePbufferSurface. For a window or pixmap surface, the
     contents of value are not modified."

Avoid this from happening by checking that the surface type is EGL_PBUFFER_BIT
before modifying the contents of the parameter.

Cc: <mesa-stable@lists.freedesktop.org>
Signed-off-by: Frank Binns <frank.binns@imgtec.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
2015-08-04 20:03:16 -07:00
..
docs egl: Mark EGL_MESA_screen_surface as obsolete. 2010-08-31 15:25:22 +08:00
drivers egl/dri: Add error info needed for EGL_EXT_image_dma_buf_import extension 2015-08-04 20:03:16 -07:00
main egl: Add eglQuerySurface surface type check for EGL_LARGEST_PBUFFER attrib 2015-08-04 20:03:16 -07:00
wayland egl: remove support for GCC older than 4.1.0 2014-12-17 08:37:17 +11:00
Android.mk egl: android: remove DRM_GRALLOC_TOP hack 2015-07-22 16:35:27 +01:00
Makefile.am egl: remove old makefile.sources 2015-07-22 16:35:27 +01:00
Makefile.sources automake: rework the EGL build 2015-07-22 16:35:27 +01:00
SConscript scons: rework the EGL build 2015-07-22 16:35:27 +01:00