Merge pull request #167 from white-axe/retina-test

Remove forced enabling of `enableBlitting` on macOS
This commit is contained in:
Splendide Imaginarius 2024-09-03 01:17:26 +00:00 committed by GitHub
commit 755136d58c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 6 deletions

View file

@ -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,

View file

@ -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);