mirror of
https://github.com/brl/mutter.git
synced 2024-11-23 00:20:42 -05:00
cogl-crate: print GError message if texture load fails
If we fail to load the crate texture then we now print error->message to hopefully give more insight into the failure to the user. Reviewed-by: Neil Roberts <neil@linux.intel.com>
This commit is contained in:
parent
df237e2151
commit
b61b328f51
@ -223,9 +223,9 @@ main (int argc, char **argv)
|
||||
data.texture = cogl_texture_new_from_file (COGL_EXAMPLES_DATA "crate.jpg",
|
||||
COGL_TEXTURE_NO_SLICING,
|
||||
COGL_PIXEL_FORMAT_ANY,
|
||||
NULL);
|
||||
&error);
|
||||
if (!data.texture)
|
||||
g_error ("Failed to load texture");
|
||||
g_error ("Failed to load texture: %s", error->message);
|
||||
|
||||
/* a CoglPipeline conceptually describes all the state for vertex
|
||||
* processing, fragment processing and blending geometry. When
|
||||
|
Loading…
Reference in New Issue
Block a user