mirror of
https://github.com/brl/mutter.git
synced 2025-02-18 06:04:10 +00: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,
|
CoglOffscreenFlags create_flags,
|
||||||
unsigned int level)
|
unsigned int level)
|
||||||
{
|
{
|
||||||
|
CoglContext *ctx = texture->context;
|
||||||
CoglOffscreen *offscreen;
|
CoglOffscreen *offscreen;
|
||||||
CoglFramebuffer *fb;
|
CoglFramebuffer *fb;
|
||||||
int level_width;
|
int level_width;
|
||||||
@ -579,8 +580,6 @@ _cogl_offscreen_new_to_texture_full (CoglTexture *texture,
|
|||||||
int i;
|
int i;
|
||||||
CoglOffscreen *ret;
|
CoglOffscreen *ret;
|
||||||
|
|
||||||
_COGL_GET_CONTEXT (ctx, NULL);
|
|
||||||
|
|
||||||
if (!cogl_has_feature (ctx, COGL_FEATURE_ID_OFFSCREEN))
|
if (!cogl_has_feature (ctx, COGL_FEATURE_ID_OFFSCREEN))
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user