egl: Check if API is supported when using eglBindAPI.
authorPlamena Manolova <plamena.manolova@intel.com>
Tue, 31 May 2016 16:32:38 +0000 (17:32 +0100)
committerBen Widawsky <ben@bwidawsk.net>
Thu, 2 Jun 2016 14:45:19 +0000 (07:45 -0700)
commite8b38ca202fbe8c281aeb81a4b64256983f185e0
treeeed7a8c2ea5648885e73aa0aed70b92d9c2a4e69
parent17f4c723eb5a503d747d643936e4fd689a5f4946
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>
src/egl/main/eglapi.c
src/egl/main/eglcurrent.h
src/egl/main/egldisplay.c
src/egl/main/egldisplay.h