mirror of
https://github.com/brl/mutter.git
synced 2024-11-21 23:50:41 -05:00
renderer/native: Include error message in log entries
We had a GError handed to us, where we logged a warning, but didn't log the message from the error. Do that so it becomes easier to find out what might have failed. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1931>
This commit is contained in:
parent
58f053d437
commit
b65555a958
@ -1114,8 +1114,9 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
|
||||
gpu_kms,
|
||||
&error))
|
||||
{
|
||||
g_warning ("Failed to create secondary GPU data for %s",
|
||||
meta_gpu_kms_get_file_path (gpu_kms));
|
||||
g_warning ("Failed to create secondary GPU data for %s: %s",
|
||||
meta_gpu_kms_get_file_path (gpu_kms),
|
||||
error->message);
|
||||
use_shadowfb = FALSE;
|
||||
framebuffer = create_fallback_offscreen (renderer_native,
|
||||
cogl_context,
|
||||
@ -1136,8 +1137,9 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
|
||||
|
||||
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (onscreen_native), &error))
|
||||
{
|
||||
g_warning ("Failed to allocate onscreen framebuffer for %s",
|
||||
meta_gpu_kms_get_file_path (gpu_kms));
|
||||
g_warning ("Failed to allocate onscreen framebuffer for %s: %s",
|
||||
meta_gpu_kms_get_file_path (gpu_kms),
|
||||
error->message);
|
||||
use_shadowfb = FALSE;
|
||||
framebuffer = create_fallback_offscreen (renderer_native,
|
||||
cogl_context,
|
||||
|
Loading…
Reference in New Issue
Block a user