Fix initialization of EGL buffers
Fix deinitialization of EGL buffers