mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-17 19:34:39 +01:00
Buildfix.
Some compilers didn't like that, oops.
This commit is contained in:
1 parent
59788d91a9
commit
048a12f589
2 files changed
+3
-3
No files matched your search
@@ -639,7 +639,7 @@ VkResult VulkanContext::CreateDevice(int physical_device) {
|
||||
VK_FORMAT_D16_UNORM_S8_UINT,
|
||||
};
|
||||
deviceInfo_.preferredDepthStencilFormat = VK_FORMAT_UNDEFINED;
|
||||
for (int i = 0; i < ARRAY_SIZE(depthStencilFormats); i++) {
|
||||
for (size_t i = 0; i < ARRAY_SIZE(depthStencilFormats); i++) {
|
||||
VkFormatProperties props;
|
||||
vkGetPhysicalDeviceFormatProperties(physical_devices_[0], depthStencilFormats[i], &props);
|
||||
if (props.optimalTilingFeatures & VK_FORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT) {
|
||||
@@ -1255,7 +1255,7 @@ void VulkanContext::DestroyFramebuffers() {
|
||||
|
||||
void VulkanContext::DestroySurfaceRenderPass() {
|
||||
vkDestroyRenderPass(device_, surface_render_pass_, NULL);
|
||||
surface_render_pass_ = NULL;
|
||||
surface_render_pass_ = VK_NULL_HANDLE;
|
||||
}
|
||||
|
||||
void VulkanContext::DestroyDevice() {
|
||||
|
||||
Reference in new issue
Block a user