[cogl/wip/rib/master-next: 8/11] Remove cogl_context_set_default API



commit a5c159be25ed60daa802feecc059ffc94cef2832
Author: Robert Bragg <robert linux intel com>
Date:   Fri Jul 1 01:41:31 2011 +0100

    Remove cogl_context_set_default API
    
    For cogl 2.0 we don't want to have a default context. In the meantime
    we can simply assume that calling cogl_context_new() implicitly
    sets that context as the default context before returning.

 cogl/cogl-context.c |   10 ----------
 cogl/cogl-context.h |    4 ----
 2 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/cogl/cogl-context.c b/cogl/cogl-context.c
index 837b70d..bc5fd69 100644
--- a/cogl/cogl-context.c
+++ b/cogl/cogl-context.c
@@ -468,16 +468,6 @@ _cogl_context_get_default (void)
   return _context;
 }
 
-void
-cogl_set_default_context (CoglContext *context)
-{
-  cogl_object_ref (context);
-
-  if (_context)
-    cogl_object_unref (_context);
-  _context = context;
-}
-
 #ifdef COGL_HAS_EGL_SUPPORT
 EGLDisplay
 cogl_context_egl_get_egl_display (CoglContext *context)
diff --git a/cogl/cogl-context.h b/cogl/cogl-context.h
index 654a88c..57fc9f6 100644
--- a/cogl/cogl-context.h
+++ b/cogl/cogl-context.h
@@ -61,10 +61,6 @@ CoglContext *
 cogl_context_new (CoglDisplay *display,
                   GError **error);
 
-#define cogl_set_default_context cogl_set_default_context_EXP
-void
-cogl_set_default_context (CoglContext *context);
-
 #ifdef COGL_HAS_EGL_SUPPORT
 #define cogl_context_egl_get_egl_display cogl_context_egl_get_egl_display_EXP
 EGLDisplay



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]