mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 18:11:05 -05:00
egl-gdl: Silence a gcc warning
gcc warns us that we should put some {} to make to which 'if's the 'else' belongs to very clear. https://bugzilla.gnome.org/show_bug.cgi?id=655723 Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
bbbe6db284
commit
89426a802f
@ -1100,11 +1100,13 @@ gdl_plane_init (CoglDisplay *display, GError **error)
|
|||||||
|
|
||||||
/* Default to triple buffering if we don't have an onscreen template */
|
/* Default to triple buffering if we don't have an onscreen template */
|
||||||
if (rc == GDL_SUCCESS)
|
if (rc == GDL_SUCCESS)
|
||||||
if (display->onscreen_template)
|
{
|
||||||
rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES,
|
if (display->onscreen_template)
|
||||||
display->onscreen_template->swap_chain->length);
|
rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES,
|
||||||
else
|
display->onscreen_template->swap_chain->length);
|
||||||
rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, 3);
|
else
|
||||||
|
rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, 3);
|
||||||
|
}
|
||||||
|
|
||||||
if (rc == GDL_SUCCESS)
|
if (rc == GDL_SUCCESS)
|
||||||
rc = gdl_plane_config_end (GDL_FALSE);
|
rc = gdl_plane_config_end (GDL_FALSE);
|
||||||
|
Loading…
Reference in New Issue
Block a user