mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-27 19:19:41 +08:00
Set SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN for the GPU renderer
This commit is contained in:
@@ -1749,6 +1749,10 @@ static bool GPU_CreateRenderer(SDL_Renderer *renderer, SDL_Window *window, SDL_P
|
|||||||
if (!SDL_HasProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN)) {
|
if (!SDL_HasProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN)) {
|
||||||
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, false);
|
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_FEATURE_ANISOTROPY_BOOLEAN, false);
|
||||||
}
|
}
|
||||||
|
// These properties allow using the renderer on more macOS devices.
|
||||||
|
if (!SDL_HasProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN)) {
|
||||||
|
SDL_SetBooleanProperty(create_props, SDL_PROP_GPU_DEVICE_CREATE_METAL_ALLOW_MACFAMILY1_BOOLEAN, false);
|
||||||
|
}
|
||||||
|
|
||||||
GPU_FillSupportedShaderFormats(create_props);
|
GPU_FillSupportedShaderFormats(create_props);
|
||||||
data->device = SDL_CreateGPUDeviceWithProperties(create_props);
|
data->device = SDL_CreateGPUDeviceWithProperties(create_props);
|
||||||
|
|||||||
Reference in New Issue
Block a user