[cogl/wip/cogl-1.14: 96/177] framebuffer: remove use of _COGL_GET_CONTEXT



commit df5e2d64f9c68a05006810661ab620b6223c34cc
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]