summaryrefslogtreecommitdiff
path: root/gfx/gl/GLContextProvider.h
diff options
context:
space:
mode:
Diffstat (limited to 'gfx/gl/GLContextProvider.h')
-rw-r--r--gfx/gl/GLContextProvider.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/gfx/gl/GLContextProvider.h b/gfx/gl/GLContextProvider.h
index d9b3f04196..6e096c1f7e 100644
--- a/gfx/gl/GLContextProvider.h
+++ b/gfx/gl/GLContextProvider.h
@@ -34,6 +34,13 @@ namespace gl {
#define DEFAULT_IMPL WGL
#endif
+#ifdef XP_MACOSX
+ #define GL_CONTEXT_PROVIDER_NAME GLContextProviderCGL
+ #include "GLContextProviderImpl.h"
+ #undef GL_CONTEXT_PROVIDER_NAME
+ #define GL_CONTEXT_PROVIDER_DEFAULT GLContextProviderCGL
+#endif
+
#if defined(MOZ_X11)
#define GL_CONTEXT_PROVIDER_NAME GLContextProviderGLX
#include "GLContextProviderImpl.h"