OSDN Git Service

egl: Add NULL check for num_config parameter
authorPauli Nieminen <pauli.nieminen@linux.intel.com>
Wed, 4 Jan 2012 14:25:10 +0000 (16:25 +0200)
committerLiu Zhiquan <zhiquan.liu@intel.com>
Wed, 30 Nov 2016 02:16:30 +0000 (10:16 +0800)
commitd8cf2ce6b8b2f29e24d8185a36618dd33a17cf8e
tree52f840442cfe840bf1eebfe159506f4079e82799
parentb29c82b67e05c9093d2accfa23e6007dc601f96b
egl: Add NULL check for num_config parameter

EGL 1.5 specification says in 3.4.1:
"An EGL_BAD_PARAMETER error is generated if num config is NULL."

We have to check for the condition and return the required error to
application for eglGetConfigs and eglGetConfigs functions.

Test: refactoring CL.
Change-Id: Ib42709f0420161ce661536394d4c0779bc62be57
Signed-off-by: Pauli Nieminen <pauli.nieminen@linux.intel.com>
Signed-off-by: Liu Zhiquan <zhiquan.liu@intel.com>
opengl/libagl/egl.cpp