mirror of
https://github.com/brl/mutter.git
synced 2024-12-28 05:42:14 +00:00
cogl: Add missing new block in switch case
Closes #3226
Fixes: 6efd4a228
("cogl/cleanup: Use construct-only properties for
CoglBuffer")
Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3478>
This commit is contained in:
parent
b64381d366
commit
7f1b890df1
@ -132,7 +132,9 @@ cogl_buffer_set_property (GObject *gobject,
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_DEFAULT_TARGET:
|
case PROP_DEFAULT_TARGET:
|
||||||
|
{
|
||||||
gboolean use_malloc = FALSE;
|
gboolean use_malloc = FALSE;
|
||||||
|
|
||||||
buffer->last_target = g_value_get_uint (value);
|
buffer->last_target = g_value_get_uint (value);
|
||||||
if (buffer->last_target == COGL_BUFFER_BIND_TARGET_PIXEL_PACK ||
|
if (buffer->last_target == COGL_BUFFER_BIND_TARGET_PIXEL_PACK ||
|
||||||
buffer->last_target == COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK)
|
buffer->last_target == COGL_BUFFER_BIND_TARGET_PIXEL_UNPACK)
|
||||||
@ -159,6 +161,7 @@ cogl_buffer_set_property (GObject *gobject,
|
|||||||
|
|
||||||
buffer->flags |= COGL_BUFFER_FLAG_BUFFER_OBJECT;
|
buffer->flags |= COGL_BUFFER_FLAG_BUFFER_OBJECT;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case PROP_UPDATE_HINT:
|
case PROP_UPDATE_HINT:
|
||||||
|
Loading…
Reference in New Issue
Block a user