framebuffer: remove use of _COGL_GET_CONTEXT

Reviewed-by: Neil Roberts <neil@linux.intel.com>

(cherry picked from commit b8755a98e4139b6a077ff329b9c5900292d3a1d3)
This commit is contained in:
Robert Bragg 2012-11-09 00:59:46 +00:00
parent 7941357e73
commit 110a7d0ed7

View File

@ -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;