vrend: reset the ctx's to NULL on reset.

This fixes some valgrind warnings in make check.

Signed-off-by: Dave Airlie <airlied@redhat.com>
macos/master
Dave Airlie 7 years ago
parent b03d30e6d1
commit 4cb8aeb4f4
  1. 2
      src/vrend_renderer.c

@ -4117,6 +4117,8 @@ vrend_renderer_fini(void)
vrend_object_fini_resource_table();
vrend_decode_reset(true);
vrend_state.current_ctx = NULL;
vrend_state.current_hw_ctx = NULL;
vrend_state.inited = false;
}

Loading…
Cancel
Save