File tree 3 files changed +3
-2
lines changed
tutorial04_first_window/app/src/main/jni
tutorial05_triangle/app/src/main/jni
tutorial06_texture/app/src/main/cpp
3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ void CreateSwapChain(void) {
227
227
.queueFamilyIndexCount = 1 ,
228
228
.pQueueFamilyIndices = &device.queueFamilyIndex_ ,
229
229
.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
230
+ .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
230
231
.presentMode = VK_PRESENT_MODE_FIFO_KHR,
231
232
.clipped = VK_FALSE,
232
233
.oldSwapchain = VK_NULL_HANDLE,
@@ -245,7 +246,6 @@ void DeleteSwapChain(void) {
245
246
for (int i = 0 ; i < swapchain.swapchainLength_ ; i++) {
246
247
vkDestroyFramebuffer (device.device_ , swapchain.framebuffers_ [i], nullptr );
247
248
vkDestroyImageView (device.device_ , swapchain.displayViews_ [i], nullptr );
248
- vkDestroyImage (device.device_ , swapchain.displayImages_ [i], nullptr );
249
249
}
250
250
vkDestroySwapchainKHR (device.device_ , swapchain.swapchain_ , nullptr );
251
251
}
Original file line number Diff line number Diff line change @@ -247,6 +247,7 @@ void CreateSwapChain(void) {
247
247
.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
248
248
.compositeAlpha = VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR,
249
249
.presentMode = VK_PRESENT_MODE_FIFO_KHR,
250
+ .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
250
251
.clipped = VK_FALSE,
251
252
.oldSwapchain = VK_NULL_HANDLE,
252
253
};
@@ -264,7 +265,6 @@ void DeleteSwapChain(void) {
264
265
for (int i = 0 ; i < swapchain.swapchainLength_ ; i++) {
265
266
vkDestroyFramebuffer (device.device_ , swapchain.framebuffers_ [i], nullptr );
266
267
vkDestroyImageView (device.device_ , swapchain.displayViews_ [i], nullptr );
267
- vkDestroyImage (device.device_ , swapchain.displayImages_ [i], nullptr );
268
268
}
269
269
vkDestroySwapchainKHR (device.device_ , swapchain.swapchain_ , nullptr );
270
270
}
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ void CreateSwapChain(void) {
262
262
.queueFamilyIndexCount = 1 ,
263
263
.pQueueFamilyIndices = &device.queueFamilyIndex_ ,
264
264
.preTransform = VK_SURFACE_TRANSFORM_IDENTITY_BIT_KHR,
265
+ .compositeAlpha = VK_COMPOSITE_ALPHA_OPAQUE_BIT_KHR,
265
266
.presentMode = VK_PRESENT_MODE_FIFO_KHR,
266
267
.clipped = VK_FALSE,
267
268
.oldSwapchain = VK_NULL_HANDLE,
You can’t perform that action at this time.
0 commit comments