Commit 66708981 authored by Dave Airlie's avatar Dave Airlie

vtest: fail on renderer init failure.

This stops us crashing later due to failing to init.
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 7c3927ce
......@@ -96,9 +96,13 @@ int vtest_create_renderer(int fd, uint32_t length)
renderer.remote_fd = fd;
virgl_renderer_init(&renderer,
VIRGL_RENDERER_USE_EGL |
VIRGL_RENDERER_THREAD_SYNC, &vtest_cbs);
ret = virgl_renderer_init(&renderer,
VIRGL_RENDERER_USE_EGL |
VIRGL_RENDERER_THREAD_SYNC, &vtest_cbs);
if (ret) {
fprintf(stderr, "failed to initialise renderer.\n");
return -1;
}
vtestname = malloc(length);
if (!vtestname)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment