Skip to content

Commit

Permalink
[Vk] Fixed validation layer "ERROR: [vulkan] Code 0 : invalid vkGetIn…
Browse files Browse the repository at this point in the history
…stanceProcAddr(0xb400006fc4dd30d0, "vkEnumerateInstanceVersion") call" - vkEnumerateInstanceVersion is "global" API, see vkGetInstanceProcAddr docs
  • Loading branch information
eugenegff committed Sep 18, 2024
1 parent 6bbe582 commit d8bb8e7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions RenderSystems/Vulkan/src/OgreVulkanRenderSystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1285,8 +1285,7 @@ namespace Ogre
{
// vkEnumerateInstanceVersion is available since Vulkan 1.1
PFN_vkEnumerateInstanceVersion enumerateInstanceVersion =
(PFN_vkEnumerateInstanceVersion)vkGetInstanceProcAddr( mVkInstance,
"vkEnumerateInstanceVersion" );
(PFN_vkEnumerateInstanceVersion)vkGetInstanceProcAddr( 0, "vkEnumerateInstanceVersion" );
if( enumerateInstanceVersion )
{
uint32_t apiVersion;
Expand Down

0 comments on commit d8bb8e7

Please sign in to comment.