[Cogl] [PATCH] framebuffer: remove use of _COGL_GET_CONTEXT
Robert Bragg
robert at sixbynine.org
Mon Nov 26 15:26:31 PST 2012
From: Robert Bragg <robert at 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 73e3d75..3ab26b0 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;
--
1.7.7.6
More information about the Cogl
mailing list