Buildfix.

Some compilers didn't like that, oops.
This commit is contained in:
Unknown W. Brackets 2016-03-27 09:25:25 -07:00
parent 59788d91a9
commit 048a12f589
2 changed files with 3 additions and 3 deletions

View File

@ -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() {

View File

@ -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);