[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 2/3] console: add same displaychangelistener registr
From: |
Marc-André Lureau |
Subject: |
[Qemu-devel] [PATCH 2/3] console: add same displaychangelistener registration pre-condition |
Date: |
Thu, 6 Apr 2017 14:05:12 +0200 |
Catch an invalid state. Mainly useful for documentation purposes.
Signed-off-by: Marc-André Lureau <address@hidden>
---
ui/console.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ui/console.c b/ui/console.c
index 0cbe5033dd..189eecfd29 100644
--- a/ui/console.c
+++ b/ui/console.c
@@ -1410,6 +1410,8 @@ void register_displaychangelistener(DisplayChangeListener
*dcl)
static DisplaySurface *dummy;
QemuConsole *con;
+ assert(!dcl->ds);
+
if (dcl->ops->dpy_gl_ctx_create) {
/* display has opengl support */
assert(dcl->con);
--
2.12.0.191.gc5d8de91d