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:
Jonas Ådahl 2020-10-18 22:06:13 +02:00 committed by Robert Mader
parent 1bee9e0d53
commit cac5938238

View File

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