Skip to content

Commit

Permalink
Merge pull request Ancurio#167 from white-axe/retina-test
Browse files Browse the repository at this point in the history
Remove forced enabling of `enableBlitting` on macOS
  • Loading branch information
Splendide-Imaginarius authored Sep 3, 2024
2 parents 84fcd28 + c5f444c commit 755136d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 2 additions & 2 deletions mkxp.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,10 +258,10 @@
// capable of it. Some drivers carry buggy
// implementations of this functionality, so
// disabling it can be used as a workaround.
// Does nothing on macOS. Force-disabled when
// Force-disabled when
// smoothScaling or smoothScalingDown isn't
// Nearest-Neighbor or Bilinear.
// (default: disabled)
// (default: disabled on windows, enabled on other systems)
//
// "enableBlitting": false,

Expand Down
4 changes: 0 additions & 4 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -530,12 +530,8 @@ static SDL_GLContext initGL(SDL_Window *win, Config &conf,
return 0;
}

// This breaks scaling for Retina screens.
// Using Metal should be rendering this irrelevant anyway, hopefully
#ifndef MKXPZ_BUILD_XCODE
if (!conf.enableBlitting)
gl.BlitFramebuffer = 0;
#endif

gl.ClearColor(0, 0, 0, 1);
gl.Clear(GL_COLOR_BUFFER_BIT);
Expand Down

0 comments on commit 755136d

Please sign in to comment.