1
0
Fork 0

cursor-renderer/native: Warn when we start falling back on OpenGL

When the driver unexpectedly fails setting the cursor sprite, log a
warning that we from now on will use OpenGL.
This commit is contained in:
Jonas Ådahl 2017-03-29 11:13:13 +08:00
parent 0d5274b3b7
commit 2392432780

View file

@ -190,6 +190,9 @@ set_crtc_cursor (MetaCursorRendererNative *native,
priv->cursor_width, priv->cursor_height, priv->cursor_width, priv->cursor_height,
hot_x, hot_y) < 0) hot_x, hot_y) < 0)
{ {
g_warning ("drmModeSetCursor2 failed with (%s), "
"drawing cursor with OpenGL from now on",
strerror (errno));
priv->has_hw_cursor = FALSE; priv->has_hw_cursor = FALSE;
priv->hw_cursor_broken = TRUE; priv->hw_cursor_broken = TRUE;
} }