summaryrefslogtreecommitdiff
path: root/server/display-channel.c
diff options
context:
space:
mode:
authorJonathon Jongsma <jjongsma@redhat.com>2016-02-11 18:46:44 +0000
committerFrediano Ziglio <fziglio@redhat.com>2016-03-23 08:21:57 +0000
commit4f6c1765c79858bf0abf5768874789be2d57c2dc (patch)
treed59261e6b6274af7fea6fac43af7f45bf7114531 /server/display-channel.c
parent5981cf264559542b0aa95553342a5fd9789f6d37 (diff)
Remove last usage of global 'reds' variable
This should be the final piece of removing the global reds variable. We still need a global variable to clean up during the atexit() function, but we use a GList of servers (even though we technically don't support multiple servers in the same process yet). Acked-by: Fabiano FidĂȘncio <fidencio@redhat.com> Acked-by: Frediano Ziglio <fziglio@redhat.com>
Diffstat (limited to 'server/display-channel.c')
-rw-r--r--server/display-channel.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/server/display-channel.c b/server/display-channel.c
index 3f619261..a6d90cf1 100644
--- a/server/display-channel.c
+++ b/server/display-channel.c
@@ -1920,6 +1920,8 @@ void display_channel_create_surface(DisplayChannel *display, uint32_t surface_id
if (display->renderer == RED_RENDERER_INVALID) {
int i;
+ QXLInstance *qxl = display->common.qxl;
+ RedsState *reds = red_qxl_get_server(qxl->st);
GArray *renderers = reds_get_renderers(reds);
for (i = 0; i < renderers->len; i++) {
uint32_t renderer = g_array_index(renderers, uint32_t, i);