mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 01:50:42 -05:00
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:
parent
7941357e73
commit
110a7d0ed7
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user