[cogl] framebuffer: remove use of _COGL_GET_CONTEXT



commit b8755a98e4139b6a077ff329b9c5900292d3a1d3
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>

 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 e40db69..769c903 100644
--- a/cogl/cogl-framebuffer.c
+++ b/cogl/cogl-framebuffer.c
@@ -565,6 +565,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;
@@ -572,8 +573,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]