Skip to content

[40] onscreen/native: Increase buffer ref count in copy_shared_framebuffer_cpu

Robert Mader requested to merge rmader/mutter:gnome-40-backport-2104 into gnome-40

It was dropping to zero after the first frame because it hadn't been incremented high enough. So the second frame would crash with:

  #0 g_type_check_instance_cast
  #1 META_DRM_BUFFER
  #2 copy_shared_framebuffer_cpu

That's the CPU-copy path (fallback-fallback) that probably no one is using but it does work after this fix. Exactly the same issue as was fixed in copy_shared_framebuffer_primary_gpu by 36352f44.

Part-of: !2104 (merged)

(cherry picked from commit acadf5b3)

Edited by Robert Mader

Merge request reports