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,
|
gpu_kms,
|
||||||
&error))
|
&error))
|
||||||
{
|
{
|
||||||
g_warning ("Failed to create secondary GPU data for %s",
|
g_warning ("Failed to create secondary GPU data for %s: %s",
|
||||||
meta_gpu_kms_get_file_path (gpu_kms));
|
meta_gpu_kms_get_file_path (gpu_kms),
|
||||||
|
error->message);
|
||||||
use_shadowfb = FALSE;
|
use_shadowfb = FALSE;
|
||||||
framebuffer = create_fallback_offscreen (renderer_native,
|
framebuffer = create_fallback_offscreen (renderer_native,
|
||||||
cogl_context,
|
cogl_context,
|
||||||
@ -1136,8 +1137,9 @@ meta_renderer_native_create_view (MetaRenderer *renderer,
|
|||||||
|
|
||||||
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (onscreen_native), &error))
|
if (!cogl_framebuffer_allocate (COGL_FRAMEBUFFER (onscreen_native), &error))
|
||||||
{
|
{
|
||||||
g_warning ("Failed to allocate onscreen framebuffer for %s",
|
g_warning ("Failed to allocate onscreen framebuffer for %s: %s",
|
||||||
meta_gpu_kms_get_file_path (gpu_kms));
|
meta_gpu_kms_get_file_path (gpu_kms),
|
||||||
|
error->message);
|
||||||
use_shadowfb = FALSE;
|
use_shadowfb = FALSE;
|
||||||
framebuffer = create_fallback_offscreen (renderer_native,
|
framebuffer = create_fallback_offscreen (renderer_native,
|
||||||
cogl_context,
|
cogl_context,
|
||||||
|
Loading…
Reference in New Issue
Block a user