mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-24 03:59:52 +00:00
virtio-gpu: use dpy_gl_scanout_disable
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-id: 1487669841-13668-4-git-send-email-kraxel@redhat.com
This commit is contained in:
parent
eaa92c76ce
commit
975896fc88
@ -185,8 +185,7 @@ static void virgl_cmd_set_scanout(VirtIOGPU *g,
|
||||
if (ss.scanout_id != 0) {
|
||||
dpy_gfx_replace_surface(g->scanout[ss.scanout_id].con, NULL);
|
||||
}
|
||||
dpy_gl_scanout_texture(g->scanout[ss.scanout_id].con, 0, false,
|
||||
0, 0, 0, 0, 0, 0);
|
||||
dpy_gl_scanout_disable(g->scanout[ss.scanout_id].con);
|
||||
}
|
||||
g->scanout[ss.scanout_id].resource_id = ss.resource_id;
|
||||
}
|
||||
@ -597,7 +596,7 @@ void virtio_gpu_virgl_reset(VirtIOGPU *g)
|
||||
if (i != 0) {
|
||||
dpy_gfx_replace_surface(g->scanout[i].con, NULL);
|
||||
}
|
||||
dpy_gl_scanout_texture(g->scanout[i].con, 0, false, 0, 0, 0, 0, 0, 0);
|
||||
dpy_gl_scanout_disable(g->scanout[i].con);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user