Skip to content

Commit

Permalink
[Vk] Fix VulkanXcbWindow build
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Dec 5, 2024
1 parent 04cf183 commit 0e0cdb0
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,6 @@ namespace Ogre
PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR get_xcb_presentation_support =
(PFN_vkGetPhysicalDeviceXcbPresentationSupportKHR)vkGetInstanceProcAddr(
mDevice->mInstance->mVkInstance, "vkGetPhysicalDeviceXcbPresentationSupportKHR" );
PFN_vkCreateXcbSurfaceKHR create_xcb_surface = (PFN_vkCreateXcbSurfaceKHR)vkGetInstanceProcAddr(
mDevice->mInstance->mVkInstance, "vkCreateXcbSurfaceKHR" );

if( !get_xcb_presentation_support( mDevice->mPhysicalDevice, mDevice->mGraphicsQueue.mFamilyIdx,
mConnection, mScreen->root_visual ) )
Expand Down Expand Up @@ -239,6 +237,9 @@ namespace Ogre
//-------------------------------------------------------------------------
void VulkanXcbWindow::createSurface()
{
PFN_vkCreateXcbSurfaceKHR create_xcb_surface = (PFN_vkCreateXcbSurfaceKHR)vkGetInstanceProcAddr(
mDevice->mInstance->mVkInstance, "vkCreateXcbSurfaceKHR" );

VkXcbSurfaceCreateInfoKHR xcbSurfCreateInfo;
memset( &xcbSurfCreateInfo, 0, sizeof( xcbSurfCreateInfo ) );
xcbSurfCreateInfo.sType = VK_STRUCTURE_TYPE_XCB_SURFACE_CREATE_INFO_KHR;
Expand Down

0 comments on commit 0e0cdb0

Please sign in to comment.