Fix EGL tests that called EGL functions before init()
authorPyry Haulos <phaulos@google.com>
Fri, 3 Apr 2015 22:36:22 +0000 (15:36 -0700)
committerPyry Haulos <phaulos@google.com>
Fri, 3 Apr 2015 22:48:45 +0000 (15:48 -0700)
commit8e814ce14475b71be9d3e17db2f1d1c6a3fcc59f
tree9fcf55e5174bef3195498630d545a8fda1749608
parentf211ff3fca61ed5cac9874a6398273892ae70f3e
Fix EGL tests that called EGL functions before init()

 * GL function table must not be initialized in constructor as
initialization may call eglGetProcAddress().

 * deinit()s called from destructors should touch EGL functions only if
there are live EGL objects (display teardown).

Change-Id: Ibfdbc0ff2280c3339c7c473d51fef5c88dbcc9fd
modules/egl/teglGLES2SharingTests.cpp
modules/egl/teglGLES2SharingThreadedTests.cpp
modules/egl/teglMakeCurrentPerfTests.cpp
modules/egl/teglMultiThreadTests.cpp
modules/egl/teglRenderTests.cpp
modules/egl/teglSimpleConfigCase.cpp
modules/egl/teglSyncTests.cpp