spice-display.c (7ec6a364916c0d1eba01128481e503a550a2b466) spice-display.c (46e19e149f3b129a22c440caba853188df67deab)
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 1005 unchanged lines hidden (view full) ---

1014
1015 ssd->dcl.ops = &display_listener_ops;
1016#ifdef HAVE_SPICE_GL
1017 if (spice_opengl) {
1018 ssd->dcl.ops = &display_listener_gl_ops;
1019 ssd->gl_unblock_bh = qemu_bh_new(qemu_spice_gl_unblock_bh, ssd);
1020 ssd->gl_unblock_timer = timer_new_ms(QEMU_CLOCK_REALTIME,
1021 qemu_spice_gl_block_timer, ssd);
1/*
2 * Copyright (C) 2010 Red Hat, Inc.
3 *
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of the GNU General Public License as
6 * published by the Free Software Foundation; either version 2 or
7 * (at your option) version 3 of the License.
8 *

--- 1005 unchanged lines hidden (view full) ---

1014
1015 ssd->dcl.ops = &display_listener_ops;
1016#ifdef HAVE_SPICE_GL
1017 if (spice_opengl) {
1018 ssd->dcl.ops = &display_listener_gl_ops;
1019 ssd->gl_unblock_bh = qemu_bh_new(qemu_spice_gl_unblock_bh, ssd);
1020 ssd->gl_unblock_timer = timer_new_ms(QEMU_CLOCK_REALTIME,
1021 qemu_spice_gl_block_timer, ssd);
1022 ssd->gls = console_gl_init_context();
1022 ssd->gls = qemu_gl_init_shader();
1023 ssd->have_surface = false;
1024 ssd->have_scanout = false;
1025 }
1026#endif
1027 ssd->dcl.con = con;
1028
1029 ssd->qxl.base.sif = &dpy_interface.base;
1030 qemu_spice_add_display_interface(&ssd->qxl, con);

--- 42 unchanged lines hidden ---
1023 ssd->have_surface = false;
1024 ssd->have_scanout = false;
1025 }
1026#endif
1027 ssd->dcl.con = con;
1028
1029 ssd->qxl.base.sif = &dpy_interface.base;
1030 qemu_spice_add_display_interface(&ssd->qxl, con);

--- 42 unchanged lines hidden ---