diff options
Diffstat (limited to 'server/dcc.c')
-rw-r--r-- | server/dcc.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/server/dcc.c b/server/dcc.c index 74514db4..70a9b997 100644 --- a/server/dcc.c +++ b/server/dcc.c @@ -467,7 +467,8 @@ void dcc_start(DisplayChannelClient *dcc) dcc_create_all_streams(dcc); } - if (qxl->st->scanout.drm_dma_buf_fd >= 0) { + SpiceMsgDisplayGlScanoutUnix *scanout = red_qxl_get_gl_scanout(qxl->st); + if (scanout) { if (reds_stream_is_plain_unix(rcc->stream) && red_channel_client_test_remote_cap(rcc, SPICE_DISPLAY_CAP_GL_SCANOUT)) { red_channel_client_pipe_add(rcc, dcc_gl_scanout_item_new(rcc, NULL, 0)); @@ -476,6 +477,7 @@ void dcc_start(DisplayChannelClient *dcc) spice_printerr("FIXME: GL not supported on this kind of connection"); } } + red_qxl_put_gl_scanout(qxl->st, scanout); } static void dcc_destroy_stream_agents(DisplayChannelClient *dcc) |