OSDN Git Service

ui/console: move dcl compatiblity check to a callback
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Wed, 16 Feb 2022 15:33:37 +0000 (19:33 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 14 Mar 2022 11:16:01 +0000 (15:16 +0400)
commita62c4a178fb154a3b810870502cb4c63a6b4cf28
treec548b0ce1df3ec573a03a2335e8d17fd04289084
parent398d1c91ed58fb7fe3dd3e9596519678c816bb69
ui/console: move dcl compatiblity check to a callback

As expected from the "compatible_dcl" comment, a simple comparison of
ops isn't enough. The following patch will fix a regression introduced
by this limited check by extending the compatibility callback for
egl-headless.

For now, this patch simply replaces the the "compatible_dcl" ops pointer
with a "dpy_gl_ctx_is_compatible_ctx" callback.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Gerd Hoffmann <kraxel@redhat.com>
include/ui/console.h
ui/console.c
ui/dbus.c
ui/egl-headless.c
ui/gtk.c
ui/sdl2.c
ui/spice-display.c