aboutsummaryrefslogtreecommitdiff
path: root/demos/cube.cpp
diff options
context:
space:
mode:
authorJoey Bzdek <joey@lunarg.com>2017-06-14 10:33:36 -0600
committerjoey-lunarg <joey@lunarg.com>2017-07-14 14:15:00 -0600
commit33bc5c8c021cd5f337554d33d5ce85a0e6b364b3 (patch)
tree3955369556093988aea4e5ea83ec57deeb02caef /demos/cube.cpp
parent15eb070fdbfc376e872555ba170429fc5aacebda (diff)
downloadusermoji-33bc5c8c021cd5f337554d33d5ce85a0e6b364b3.tar.xz
demos: Clang-format Wayland and cube.cpp refactor
Change-Id: I73dac6489e41a94fc53a1c7942888a3a6479a805
Diffstat (limited to 'demos/cube.cpp')
-rw-r--r--demos/cube.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/demos/cube.cpp b/demos/cube.cpp
index 87a01d99..41011b26 100644
--- a/demos/cube.cpp
+++ b/demos/cube.cpp
@@ -324,7 +324,7 @@ struct Demo {
uint32_t swapchainImageCount;
vk::SwapchainKHR swapchain;
- std::unique_ptr<SwapchainBuffers[]> buffers;
+ std::unique_ptr<SwapchainImageResources[]> swapchain_image_resources;
vk::PresentModeKHR presentMode;
vk::Fence fences[FRAME_LAG];
uint32_t frame_index;
@@ -410,7 +410,7 @@ static void pointer_handle_motion(void *data, struct wl_pointer *pointer, uint32
static void pointer_handle_button(void *data, struct wl_pointer *wl_pointer, uint32_t serial, uint32_t time, uint32_t button,
uint32_t state) {
- Demo *demo = (Demo *)data;
+ Demo *demo = (Demo *)data;
if (button == BTN_LEFT && state == WL_POINTER_BUTTON_STATE_PRESSED) {
wl_shell_surface_move(demo->shell_surface, demo->seat, serial);
}