egl/dri2: Set error code when dri2CreateContextAttribs fails
authorChad Versace <chad.versace@linux.intel.com>
Fri, 9 Nov 2012 22:06:41 +0000 (14:06 -0800)
committerAndreas Boll <andreas.boll.dev@gmail.com>
Sun, 20 Jan 2013 14:08:28 +0000 (15:08 +0100)
commit65476169f344115462a652da39972d16aadee86f
tree1903ae826e47528c3851ba36f1f52f55d5593a1f
parent8a3a76e1dac98244140b3e8d663719965c38be5f
egl/dri2: Set error code when dri2CreateContextAttribs fails

When dri2CreateContextContextAttribs failed, eglCreateContext returned
NULL yet set the error code to EGL_SUCCESS! The problem was that
eglCreateContext ignored the error code returned by
driCreateContextAttribs.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=56706
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
(cherry picked from commit 5cf8536690226b3bd19d19197fcec501a278703c)
src/egl/drivers/dri2/egl_dri2.c