mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-05 16:46:38 +00:00
Buildfix.
Some compilers didn't like that, oops.
This commit is contained in:
parent
59788d91a9
commit
048a12f589
@ -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() {
|
||||
|
@ -529,7 +529,7 @@ void GPU_Vulkan::BuildReportingInfo() {
|
||||
const auto &props = vulkan_->GetPhysicalDeviceProperties();
|
||||
const auto &features = vulkan_->GetFeaturesAvailable();
|
||||
|
||||
#define CHECK_BOOL_FEATURE(n) do { if (features.##n) { featureNames += ", " #n; } } while (false)
|
||||
#define CHECK_BOOL_FEATURE(n) do { if (features.n) { featureNames += ", " #n; } } while (false)
|
||||
|
||||
std::string featureNames = "";
|
||||
CHECK_BOOL_FEATURE(robustBufferAccess);
|
||||
|
Loading…
x
Reference in New Issue
Block a user