egl: eglGetError should return the status of the last call.
authorChia-I Wu <olv@lunarg.com>
Wed, 17 Feb 2010 08:05:27 +0000 (16:05 +0800)
committerChia-I Wu <olv@lunarg.com>
Wed, 17 Feb 2010 12:00:11 +0000 (20:00 +0800)
commitb3bb18062005d3c9ec0f942a5e096e7e38c6f3e1
tree3bb44851b0d06be56b5d8c8b1238f8d897b31cb3
parent3dee01a692796496b6e3d6ff6e4ebac10b594640
egl: eglGetError should return the status of the last call.

Use macros to record the status of the function call before returning.
This is the only way that eglGetError can return the status of the most
recent function call.
src/egl/main/eglapi.c