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)
committerChad Versace <chad.versace@linux.intel.com>
Mon, 19 Nov 2012 16:18:22 +0000 (08:18 -0800)
commit5cf8536690226b3bd19d19197fcec501a278703c
treed56e475147e0d6cbdc74bfab9d846c63af02a2d2
parent243cf7a924eaef78ce0d5150747fae6c3c4e6974
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>
src/egl/drivers/dri2/egl_dri2.c