Review fixes

This commit is contained in:
r.kuznetsov 2018-12-19 14:34:36 +03:00 committed by Daria Volvenkova
parent b9445bf3ed
commit 6fa94a5f20
2 changed files with 2 additions and 2 deletions

View file

@ -256,7 +256,7 @@ bool AndroidVulkanContextFactory::QuerySurfaceSize()
return false;
}
if (!(surfaceCapabilities.supportedCompositeAlpha | VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR))
if (!(surfaceCapabilities.supportedCompositeAlpha & VK_COMPOSITE_ALPHA_INHERIT_BIT_KHR))
{
LOG_ERROR_VK("Alpha channel is not supported.");
return false;

View file

@ -48,7 +48,7 @@ private:
ANativeWindow * m_nativeWindow = nullptr;
bool m_windowSurfaceValid = false;
VkSurfaceKHR m_surface = 0;
VkFormat m_surfaceFormat;
VkFormat m_surfaceFormat = VK_FORMAT_UNDEFINED;
int m_surfaceWidth = 0;
int m_surfaceHeight = 0;
};