src/render/metal/SDL_render_metal.m
changeset 12393 c7b7abeab424
parent 12392 046dcbdbaa74
child 12394 80f861112154
equal deleted inserted replaced
12392:046dcbdbaa74 12393:c7b7abeab424
  1463     renderer->always_batch = SDL_TRUE;
  1463     renderer->always_batch = SDL_TRUE;
  1464 
  1464 
  1465 #if defined(__MACOSX__) && defined(MAC_OS_X_VERSION_10_13)
  1465 #if defined(__MACOSX__) && defined(MAC_OS_X_VERSION_10_13)
  1466     if (@available(macOS 10.13, *)) {
  1466     if (@available(macOS 10.13, *)) {
  1467         data.mtllayer.displaySyncEnabled = (flags & SDL_RENDERER_PRESENTVSYNC) != 0;
  1467         data.mtllayer.displaySyncEnabled = (flags & SDL_RENDERER_PRESENTVSYNC) != 0;
       
  1468         if (data.mtllayer.displaySyncEnabled) {
       
  1469             renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
       
  1470         }
  1468     } else
  1471     } else
  1469 #endif
  1472 #endif
  1470     {
  1473     {
  1471         renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
  1474         renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
  1472     }
  1475     }