diff options
author | Dave Airlie <airlied@gmail.com> | 2015-03-13 19:22:31 +1000 |
---|---|---|
committer | Dave Airlie <airlied@gmail.com> | 2015-03-13 19:22:31 +1000 |
commit | 020b8307e12c0512c76596606a7cdbc3a740b607 (patch) | |
tree | db8a7d5f396e38077e2d842dfefd01f8c6a6d635 /vtest | |
parent | f8a2c576923c05643cecc767a756f534d00d4b65 (diff) |
vtest: create renderer earlier
Diffstat (limited to 'vtest')
-rw-r--r-- | vtest/vtest_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
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) { |