X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=src%2Fapp.c;fp=src%2Fapp.c;h=bc931d1eb9a6807dcbb5735f710ea8998ae89593;hb=7709af4a73b0ee7b6a40dfe8e6adb8624b1e9821;hp=7fc68bdb178b0dc2e5d69c8e3e0a9f243fb49abe;hpb=2fce392c750852815282044c03c4b00036660453;p=vktest3 diff --git a/src/app.c b/src/app.c index 7fc68bd..bc931d1 100644 --- a/src/app.c +++ b/src/app.c @@ -92,7 +92,7 @@ void app_display(void) rpbegin.framebuffer = vk_fb(fb[imgid]); vk_rect(&rpbegin.renderArea, 0, 0, win_width, win_height); rpbegin.pClearValues = clear; - rpbegin.clearValueCount = 2; + rpbegin.clearValueCount = 1; vkCmdBeginRenderPass(cmdbuf, &rpbegin, VK_SUBPASS_CONTENTS_INLINE); @@ -107,18 +107,23 @@ void app_display(void) /* swap buffers after drawing is finished */ vk_present(queue, imgid, sem_draw); + + usleep(10000); } void app_reshape(int x, int y) { int i; + return; /* XXX */ + if(vk_reshape(x, y) == -1) { abort(); } for(i=0; i