Skip to content

Commit

Permalink
Sort globals according to specificity
Browse files Browse the repository at this point in the history
module => instance => device
  • Loading branch information
zeux committed Nov 5, 2023
1 parent 835c7e2 commit d5fa939
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions volk.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ __declspec(dllimport) FARPROC __stdcall GetProcAddress(HMODULE, LPCSTR);
__declspec(dllimport) int __stdcall FreeLibrary(HMODULE);
#endif

static void* loadedModule = NULL;
static VkInstance loadedInstance = VK_NULL_HANDLE;
static VkDevice loadedDevice = VK_NULL_HANDLE;
static void* loadedModule = NULL;

static void volkGenLoadLoader(void* context, PFN_vkVoidFunction (*load)(void*, const char*));
static void volkGenLoadInstance(void* context, PFN_vkVoidFunction (*load)(void*, const char*));
Expand Down Expand Up @@ -112,9 +112,9 @@ void volkFinalize(void)
volkGenLoadInstance(NULL, nullProcAddrStub);
volkGenLoadDevice(NULL, nullProcAddrStub);

loadedModule = NULL;
loadedInstance = VK_NULL_HANDLE;
loadedDevice = VK_NULL_HANDLE;
loadedModule = NULL;
}

uint32_t volkGetInstanceVersion(void)
Expand Down

0 comments on commit d5fa939

Please sign in to comment.