summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Bragg <robert@linux.intel.com>2012-11-09 00:59:46 +0000
committerRobert Bragg <robert@linux.intel.com>2013-01-21 14:20:33 +0000
commitdf5e2d64f9c68a05006810661ab620b6223c34cc (patch)
tree19bf433edd7ab909cb1542bb73cdf95e5adb293b
parentc52197bab1a68e2a35f662135137c6672639db9f (diff)
downloadcogl-df5e2d64f9c68a05006810661ab620b6223c34cc.tar.gz
framebuffer: remove use of _COGL_GET_CONTEXT
Reviewed-by: Neil Roberts <neil@linux.intel.com> (cherry picked from commit b8755a98e4139b6a077ff329b9c5900292d3a1d3)
-rw-r--r--cogl/cogl-framebuffer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/cogl/cogl-framebuffer.c b/cogl/cogl-framebuffer.c
index 7474084b..0af2e4fe 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;