summaryrefslogtreecommitdiff
path: root/vtest
diff options
context:
space:
mode:
authorDave Airlie <airlied@gmail.com>2015-03-13 19:22:31 +1000
committerDave Airlie <airlied@gmail.com>2015-03-13 19:22:31 +1000
commit020b8307e12c0512c76596606a7cdbc3a740b607 (patch)
treedb8a7d5f396e38077e2d842dfefd01f8c6a6d635 /vtest
parentf8a2c576923c05643cecc767a756f534d00d4b65 (diff)
vtest: create renderer earlier
Diffstat (limited to 'vtest')
-rw-r--r--vtest/vtest_server.c4
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) {