renderer: do not open-code vrend_renderer_force_ctx_0

We already have a helper for this, let's use it.

Signed-off-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org>
macos/master
Erik Faye-Lund 6 years ago
parent 44023f753a
commit 401ff33252
  1. 2
      src/vrend_renderer.c

@ -6829,7 +6829,7 @@ int vrend_renderer_transfer_iov(const struct vrend_transfer_info *info,
return EINVAL; return EINVAL;
if (info->context0) { if (info->context0) {
vrend_hw_switch_context(vrend_lookup_renderer_ctx(0), true); vrend_renderer_force_ctx_0();
ctx = NULL; ctx = NULL;
} }

Loading…
Cancel
Save