offload: Only print one debug message

... when failing to create the wl_buffer.
This commit is contained in:
Benjamin Otte
2023-11-14 13:27:18 +01:00
parent 4920ac4a57
commit 46d4c70cd7

View File

@@ -87,8 +87,6 @@ params_buffer_failed (void *data,
{
CreateBufferData *cd = data;
GDK_DEBUG (OFFLOAD, "Creating wl_buffer for dmabuf failed");
cd->buffer = NULL;
cd->done = TRUE;
}
@@ -211,7 +209,10 @@ gdk_wayland_subsurface_attach (GdkSubsurface *sub,
else
{
GDK_DISPLAY_DEBUG (gdk_surface_get_display (sub->parent), OFFLOAD,
"Failed to get buffer for texture, hiding subsurface %p", self);
"Failed to create wl_buffer for %dx%d texture, hiding subsurface %p",
gdk_texture_get_width (texture),
gdk_texture_get_height (texture),
self);
g_set_object (&self->texture, NULL);