[cogl/cogl-1.14: 87/174] framebuffer: remove use of _COGL_GET_CONTEXT



commit 110a7d0ed7ebbf6e2429a71ff2f2bb6018b8a330
Author: Robert Bragg <robert linux intel com>
Date:   Fri Nov 9 00:59:46 2012 +0000

    framebuffer: remove use of _COGL_GET_CONTEXT
    
    Reviewed-by: Neil Roberts <neil linux intel com>
    
    (cherry picked from commit b8755a98e4139b6a077ff329b9c5900292d3a1d3)

 cogl/cogl-framebuffer.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 7474084..0af2e4f 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -572,6 +572,7 @@ _cogl_offscreen_new_to_texture_full (CoglTexture *texture,
                                      CoglOffscreenFlags create_flags,
                                      unsigned int level)
 {
+  CoglContext *ctx = texture->context;
   CoglOffscreen *offscreen;
   CoglFramebuffer *fb;
   int level_width;
@@ -579,8 +580,6 @@ _cogl_offscreen_new_to_texture_full (CoglTexture *texture,
   int i;
   CoglOffscreen *ret;
 
-  _COGL_GET_CONTEXT (ctx, NULL);
-
   if (!cogl_has_feature (ctx, COGL_FEATURE_ID_OFFSCREEN))
     return NULL;
 



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