diff options
author | Robert Bragg <robert@linux.intel.com> | 2012-11-09 00:59:46 +0000 |
---|---|---|
committer | Robert Bragg <robert@linux.intel.com> | 2012-11-27 18:16:33 +0000 |
commit | b8755a98e4139b6a077ff329b9c5900292d3a1d3 (patch) | |
tree | 94263eecb10379f711e27aa453d0f608ccb16a1d | |
parent | b5c8ec5db52a6cb71f29b338a59fb3772506fef7 (diff) | |
download | cogl-b8755a98e4139b6a077ff329b9c5900292d3a1d3.tar.gz |
framebuffer: remove use of _COGL_GET_CONTEXT
Reviewed-by: Neil Roberts <neil@linux.intel.com>
-rw-r--r-- | 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 e40db699..769c903a 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; |