From 020b8307e12c0512c76596606a7cdbc3a740b607 Mon Sep 17 00:00:00 2001 From: Dave Airlie Date: Fri, 13 Mar 2015 19:22:31 +1000 Subject: vtest: create renderer earlier --- vtest/vtest_server.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'vtest') diff --git a/vtest/vtest_server.c b/vtest/vtest_server.c index ee2e33c..f8cbf1d 100644 --- a/vtest/vtest_server.c +++ b/vtest/vtest_server.c @@ -84,12 +84,12 @@ int main(void) new_fd = wait_for_socket_accept(sock); + vtest_create_renderer(new_fd); again: ret = wait_for_socket_read(new_fd); if (ret < 0) goto err; - - vtest_create_renderer(new_fd); + ret = read(new_fd, &header, sizeof(header)); if (ret == 8) { -- cgit v1.2.3