mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-16 14:56:00 +00:00
Added thread-safe environment functions
Also marked the existing functions as unsafe, as they can cause crashes if used in multi-threaded applications. As a bonus, since the new functions are hashtable based, hint environment lookups are much faster.
This commit is contained in:
@@ -11591,7 +11591,7 @@ static Uint8 VULKAN_INTERNAL_CreateLogicalDevice(
|
||||
static void VULKAN_INTERNAL_LoadEntryPoints(void)
|
||||
{
|
||||
// Required for MoltenVK support
|
||||
SDL_setenv("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1);
|
||||
SDL_setenv_unsafe("MVK_CONFIG_FULL_IMAGE_VIEW_SWIZZLE", "1", 1);
|
||||
|
||||
// Load Vulkan entry points
|
||||
if (!SDL_Vulkan_LoadLibrary(NULL)) {
|
||||
|
Reference in New Issue
Block a user