When CL-GL interop is used, a GL context are used by two or more threads at the same time, which causes race condition. Solution: Add lock when accessing GL functions during CL-GL interop. Change-Id: I3a34da3cbdf74c401111cc4e3a04ad84cc52709e
Change-Id: Ieaa340196e6844b2d18cdcc2278f913fc7c7bbb8
Change-Id: Ic40363587a2bc56f977a148eba386dfb73d6286e