mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -05:00
cogl-crate: remove redundant g_type_init
Cogl internally will call g_type_init if necessary so the cogl-crate example doesn't need to do this explicitly. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
b61b328f51
commit
0205a96efb
@ -151,8 +151,6 @@ main (int argc, char **argv)
|
|||||||
CoglDepthState depth_state;
|
CoglDepthState depth_state;
|
||||||
gboolean has_swap_notify;
|
gboolean has_swap_notify;
|
||||||
|
|
||||||
g_type_init ();
|
|
||||||
|
|
||||||
ctx = cogl_context_new (NULL, &error);
|
ctx = cogl_context_new (NULL, &error);
|
||||||
if (!ctx) {
|
if (!ctx) {
|
||||||
fprintf (stderr, "Failed to create context: %s\n", error->message);
|
fprintf (stderr, "Failed to create context: %s\n", error->message);
|
||||||
|
Loading…
Reference in New Issue
Block a user