egl: Check if API is supported when using eglBindAPI.

According to the EGL specifications before binding an API
we must check whether it's supported first. If not eglBindAPI
should return EGL_FALSE and generate a EGL_BAD_PARAMETER error.

Signed-off-by: Plamena Manolova <plamena.manolova@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
Plamena Manolova
2016-05-31 17:32:38 +01:00
committed by Ben Widawsky
parent 17f4c723eb
commit e8b38ca202
4 changed files with 72 additions and 10 deletions

View File

@@ -140,6 +140,7 @@ struct _egl_display
_EGLPlatformType Platform; /**< The type of the platform display */
void *PlatformDisplay; /**< A pointer to the platform display */
_EGLThreadInfo *ThreadList;/**< A pointer to the thread the display was created form */
_EGLDriver *Driver; /**< Matched driver of the display */
EGLBoolean Initialized; /**< True if the display is initialized */