From dcebf6f65a890083545a8c191fcdc2522bfd035d Mon Sep 17 00:00:00 2001 From: Mathias Agopian Date: Mon, 17 Aug 2009 18:07:06 -0700 Subject: fix bug [2021677] egl driver unloaded after eglTerminate() is called refactored the code so that: - EGL APIs that can be called before or after eglInitialize() will work by loading the drivers first - make eglGetDisplay() a lot more efficient - make sure that EGL drivers are loaded in a thread-safe way - don't unload the drivers upon calling eglTerminate(), they're now never unloaded, since there is no safe way to do it (some thread could be running) - updated our EGL version to 1.4 - return better error codes if errors happen during initialization --- opengl/libs/hooks.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'opengl/libs/hooks.h') diff --git a/opengl/libs/hooks.h b/opengl/libs/hooks.h index 37292eef07ec..8c0357e87a6e 100644 --- a/opengl/libs/hooks.h +++ b/opengl/libs/hooks.h @@ -60,12 +60,8 @@ const unsigned int NUM_DISPLAYS = 1; enum { IMPL_HARDWARE = 0, IMPL_SOFTWARE, - IMPL_NUM_DRIVERS_IMPLEMENTATIONS, - - IMPL_CONTEXT_LOST = IMPL_NUM_DRIVERS_IMPLEMENTATIONS, - IMPL_NO_CONTEXT, - + IMPL_NO_CONTEXT = IMPL_NUM_DRIVERS_IMPLEMENTATIONS, IMPL_NUM_IMPLEMENTATIONS }; -- cgit v1.2.3-59-g8ed1b