OSDN Git Service

egl: clear error on function entry
authorMichael I. Gold <gold@nvidia.com>
Fri, 21 Jan 2011 23:39:38 +0000 (15:39 -0800)
committerMathias Agopian <mathias@google.com>
Tue, 25 Jan 2011 23:36:21 +0000 (15:36 -0800)
commite7ff5ddb47c8d30865f37cfdffa3b7ebb597c4d7
tree7fbb0afb9168cf802d24d074ada12d7a98475675
parent3115dad3fc8493ff510b9f6a46b18d951bf5c162
egl: clear error on function entry

Clear the current thread error state on entry to API functions as
mandated by the EGL 1.4 specification, section 3.1.  glGetError
returns additional information about the "most recent EGL function".

Change-Id: Ic24c64b39294ffc1a4e43fa72663e076b9d7decf
opengl/libs/EGL/egl.cpp