egl/android: Fix error condition for EGL_ANDROID_image_native_buffer
authorChad Versace <chad.versace@linux.intel.com>
Mon, 6 May 2013 14:41:11 +0000 (07:41 -0700)
committerChad Versace <chad.versace@linux.intel.com>
Wed, 8 May 2013 15:44:05 +0000 (08:44 -0700)
commit2878f4685c8a5165937b5f4510b602d1a67af055
tree701fcde102963519d6bb404f1e0791a381da0a06
parent38d2a16c0113b905c46804695c4fafd1b5865d08
egl/android: Fix error condition for EGL_ANDROID_image_native_buffer

Emit EGL_BAD_CONTEXT if the user passes a context to
eglCreateImageKHR(type=EGL_ANDROID_image_native_buffer).

From the EGL_ANDROID_image_native_buffer spec:
  * If <target> is EGL_NATIVE_BUFFER_ANDROID and <ctx> is not
    EGL_NO_CONTEXT, the error EGL_BAD_CONTEXT is generated.

Note: This is a candidate for the stable branches.
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/egl/drivers/dri2/platform_android.c