Skip to content

Commit

Permalink
move a variable back to where it was before
Browse files Browse the repository at this point in the history
  • Loading branch information
sharkautarch committed Jan 17, 2024
1 parent bbb5d48 commit b7a35ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendervulkan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3346,7 +3346,6 @@ VkInstance vulkan_create_instance(const bool bShouldDebug )
VkResult result = VK_ERROR_INITIALIZATION_FAILED;

std::vector< const char * > sdlExtensions;
unsigned int extCount = 0;
if ( BIsVRSession() )
{
#if HAVE_OPENVR
Expand All @@ -3360,7 +3359,8 @@ VkInstance vulkan_create_instance(const bool bShouldDebug )
fprintf(stderr, "SDL_Vulkan_LoadLibrary failed: %s\n", SDL_GetError());
return nullptr;
}


unsigned int extCount = 0;
SDL_Vulkan_GetInstanceExtensions( nullptr, &extCount, nullptr );
sdlExtensions.resize( extCount );
SDL_Vulkan_GetInstanceExtensions( nullptr, &extCount, sdlExtensions.data() );
Expand Down

0 comments on commit b7a35ee

Please sign in to comment.