diff options
author | Damien Lespiau <damien.lespiau@intel.com> | 2011-08-01 17:23:25 +0300 |
---|---|---|
committer | Neil Roberts <neil@linux.intel.com> | 2011-08-01 16:36:09 +0100 |
commit | 89426a802f4ee68e137268b0484690b9e2a895b8 (patch) | |
tree | e813893552479b05aa150caaca5738aa9b200152 | |
parent | bbbe6db2847f36e0a8f26ffbaecced7451a84471 (diff) | |
download | cogl-89426a802f4ee68e137268b0484690b9e2a895b8.tar.gz |
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>
-rw-r--r-- | cogl/winsys/cogl-winsys-egl.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/cogl/winsys/cogl-winsys-egl.c b/cogl/winsys/cogl-winsys-egl.c index d4f83ac3..08cd354a 100644 --- a/cogl/winsys/cogl-winsys-egl.c +++ b/cogl/winsys/cogl-winsys-egl.c @@ -1100,11 +1100,13 @@ gdl_plane_init (CoglDisplay *display, GError **error) /* Default to triple buffering if we don't have an onscreen template */ if (rc == GDL_SUCCESS) - if (display->onscreen_template) - rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, - display->onscreen_template->swap_chain->length); - else - rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, 3); + { + if (display->onscreen_template) + rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, + display->onscreen_template->swap_chain->length); + else + rc = gdl_plane_set_uint (GDL_PLANE_NUM_GFX_SURFACES, 3); + } if (rc == GDL_SUCCESS) rc = gdl_plane_config_end (GDL_FALSE); |