Fixing Android build error and warnings
This commit is contained in:
parent
a7a1a8aed4
commit
96df99f1f2
2 changed files with 2 additions and 6 deletions
|
|
@ -76,7 +76,7 @@ namespace vkDebug
|
|||
instance,
|
||||
&dbgCreateInfo,
|
||||
nullptr,
|
||||
(callBack != nullptr) ? &callBack : &msgCallback);
|
||||
(callBack != VK_NULL_HANDLE) ? &callBack : &msgCallback);
|
||||
assert(!err);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -247,7 +247,7 @@ void VulkanExampleBase::prepare()
|
|||
{
|
||||
if (enableValidation)
|
||||
{
|
||||
vkDebug::setupDebugging(instance, VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT, NULL);
|
||||
vkDebug::setupDebugging(instance, VK_DEBUG_REPORT_ERROR_BIT_EXT | VK_DEBUG_REPORT_WARNING_BIT_EXT, VK_NULL_HANDLE);
|
||||
}
|
||||
createCommandPool();
|
||||
createSetupCommandBuffer();
|
||||
|
|
@ -887,10 +887,6 @@ void VulkanExampleBase::initVulkan(bool enableValidation)
|
|||
vkGetPhysicalDeviceProperties(physicalDevice, &deviceProperties);
|
||||
vkGetPhysicalDeviceFeatures(physicalDevice, &deviceFeatures);
|
||||
|
||||
#if defined(__ANDROID__)
|
||||
LOGD(deviceProperties.deviceName);
|
||||
#endif
|
||||
|
||||
// Gather physical device memory properties
|
||||
vkGetPhysicalDeviceMemoryProperties(physicalDevice, &deviceMemoryProperties);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue