mirror of
https://github.com/brl/mutter.git
synced 2024-11-22 08:00:42 -05:00
cogl/gl-framebuffer: Fix allocate flag variable name
It was called 'flags' which would conflict with a variable containing a CoglOffscreenFlag that will be added later. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1514>
This commit is contained in:
parent
1bee9e0d53
commit
cac5938238
@ -712,7 +712,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
{
|
{
|
||||||
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (offscreen);
|
CoglFramebuffer *framebuffer = COGL_FRAMEBUFFER (offscreen);
|
||||||
CoglContext *ctx = cogl_framebuffer_get_context (framebuffer);
|
CoglContext *ctx = cogl_framebuffer_get_context (framebuffer);
|
||||||
CoglOffscreenAllocateFlags flags;
|
CoglOffscreenAllocateFlags allocate_flags;
|
||||||
CoglGlFramebuffer *gl_framebuffer;
|
CoglGlFramebuffer *gl_framebuffer;
|
||||||
CoglGlFbo *gl_fbo;
|
CoglGlFbo *gl_fbo;
|
||||||
const CoglFramebufferConfig *config;
|
const CoglFramebufferConfig *config;
|
||||||
@ -754,7 +754,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = 0,
|
allocate_flags = 0,
|
||||||
gl_fbo)) ||
|
gl_fbo)) ||
|
||||||
|
|
||||||
(ctx->have_last_offscreen_allocate_flags &&
|
(ctx->have_last_offscreen_allocate_flags &&
|
||||||
@ -764,7 +764,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = ctx->last_offscreen_allocate_flags,
|
allocate_flags = ctx->last_offscreen_allocate_flags,
|
||||||
gl_fbo)) ||
|
gl_fbo)) ||
|
||||||
|
|
||||||
(
|
(
|
||||||
@ -780,7 +780,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH_STENCIL,
|
allocate_flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH_STENCIL,
|
||||||
gl_fbo)) ||
|
gl_fbo)) ||
|
||||||
|
|
||||||
try_creating_fbo (ctx,
|
try_creating_fbo (ctx,
|
||||||
@ -789,7 +789,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH |
|
allocate_flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH |
|
||||||
COGL_OFFSCREEN_ALLOCATE_FLAG_STENCIL,
|
COGL_OFFSCREEN_ALLOCATE_FLAG_STENCIL,
|
||||||
gl_fbo) ||
|
gl_fbo) ||
|
||||||
|
|
||||||
@ -799,7 +799,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = COGL_OFFSCREEN_ALLOCATE_FLAG_STENCIL,
|
allocate_flags = COGL_OFFSCREEN_ALLOCATE_FLAG_STENCIL,
|
||||||
gl_fbo) ||
|
gl_fbo) ||
|
||||||
|
|
||||||
try_creating_fbo (ctx,
|
try_creating_fbo (ctx,
|
||||||
@ -808,7 +808,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH,
|
allocate_flags = COGL_OFFSCREEN_ALLOCATE_FLAG_DEPTH,
|
||||||
gl_fbo) ||
|
gl_fbo) ||
|
||||||
|
|
||||||
try_creating_fbo (ctx,
|
try_creating_fbo (ctx,
|
||||||
@ -817,7 +817,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
level_width,
|
level_width,
|
||||||
level_height,
|
level_height,
|
||||||
config,
|
config,
|
||||||
flags = 0,
|
allocate_flags = 0,
|
||||||
gl_fbo))
|
gl_fbo))
|
||||||
{
|
{
|
||||||
cogl_framebuffer_update_samples_per_pixel (framebuffer,
|
cogl_framebuffer_update_samples_per_pixel (framebuffer,
|
||||||
@ -827,7 +827,7 @@ _cogl_offscreen_gl_allocate (CoglOffscreen *offscreen,
|
|||||||
{
|
{
|
||||||
/* Record that the last set of flags succeeded so that we can
|
/* Record that the last set of flags succeeded so that we can
|
||||||
try that set first next time */
|
try that set first next time */
|
||||||
ctx->last_offscreen_allocate_flags = flags;
|
ctx->last_offscreen_allocate_flags = allocate_flags;
|
||||||
ctx->have_last_offscreen_allocate_flags = TRUE;
|
ctx->have_last_offscreen_allocate_flags = TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user