virglrenderer: force ctx0 for cursor

Tested-by: Jakob Bornecrantz <jakob@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Signed-off-by: Jakob Bornecrantz <jakob@collabora.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Erik Faye-Lund 6 years ago committed by Dave Airlie
parent dc8b29ffce
commit 7a353862c6
  1. 1
      src/virglrenderer.c

@ -289,6 +289,7 @@ static struct vrend_if_cbs virgl_cbs = {
void *virgl_renderer_get_cursor_data(uint32_t resource_id, uint32_t *width, uint32_t *height)
{
vrend_renderer_force_ctx_0();
return vrend_renderer_get_cursor_contents(resource_id, width, height);
}

Loading…
Cancel
Save