[cogl] don't call cogl_set_default_context in hello.c



commit a54aa40dbef26455bbab9fddb84c737fac3ac8d2
Author: Robert Bragg <robert linux intel com>
Date:   Wed May 11 16:39:10 2011 +0100

    don't call cogl_set_default_context in hello.c
    
    Actually calling cogl_set_default_context isn't required because
    cogl_context_new implicitly sets the new context to be the default
    context. Since we want to eventually get rid of the concept of a default
    context we'd rather not pollute the example with the concept.

 examples/hello.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/examples/hello.c b/examples/hello.c
index 62076ad..079dc4e 100644
--- a/examples/hello.c
+++ b/examples/hello.c
@@ -21,9 +21,6 @@ main (int argc, char **argv)
         fprintf (stderr, "Failed to create context: %s\n", error->message);
         return 1;
     }
-    /* Eventually we want to get rid of any "default context" but for now it's
-     * needed...  */
-    cogl_set_default_context (ctx);
 
     onscreen = cogl_onscreen_new (ctx, 640, 480);
     /* Eventually there will be an implicit allocate on first use so this



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