src/render/metal/SDL_render_metal.m
changeset 12393 c7b7abeab424
parent 12392 046dcbdbaa74
child 12394 80f861112154
     1.1 --- a/src/render/metal/SDL_render_metal.m	Sun Nov 04 12:24:05 2018 -0400
     1.2 +++ b/src/render/metal/SDL_render_metal.m	Sun Nov 04 12:31:02 2018 -0400
     1.3 @@ -1465,6 +1465,9 @@
     1.4  #if defined(__MACOSX__) && defined(MAC_OS_X_VERSION_10_13)
     1.5      if (@available(macOS 10.13, *)) {
     1.6          data.mtllayer.displaySyncEnabled = (flags & SDL_RENDERER_PRESENTVSYNC) != 0;
     1.7 +        if (data.mtllayer.displaySyncEnabled) {
     1.8 +            renderer->info.flags |= SDL_RENDERER_PRESENTVSYNC;
     1.9 +        }
    1.10      } else
    1.11  #endif
    1.12      {