Skip to content

Commit

Permalink
Buildfix.
Browse files Browse the repository at this point in the history
Some compilers didn't like that, oops.
  • Loading branch information
unknownbrackets committed Mar 27, 2016
1 parent 59788d9 commit 048a12f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Common/Vulkan/VulkanContext.cpp
Expand Up @@ -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) {
Expand Down Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion GPU/Vulkan/GPU_Vulkan.cpp
Expand Up @@ -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);
Expand Down

0 comments on commit 048a12f

Please sign in to comment.