mirror of
https://github.com/Kbz-8/Pulse.git
synced 2026-01-11 23:43:34 +00:00
fixing device choosing in EGL
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
// This file is part of "Pulse"
|
||||
// For conditions of distribution and use, see copyright notice in LICENSE
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "PulseInternal.h"
|
||||
|
||||
#ifndef PULSE_PLAT_WASM
|
||||
@@ -81,3 +83,11 @@ void PulseUnloadLibrary(PulseLibModule module)
|
||||
dlclose(module);
|
||||
#endif
|
||||
}
|
||||
|
||||
uint32_t PulseHashString(const char* str)
|
||||
{
|
||||
uint32_t hash = 5381;
|
||||
for(size_t i = 0; i < strlen(str); i++)
|
||||
hash = ((hash << 5) + hash) + str[i];
|
||||
return hash;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user