Merge pull request #177 from Splendide-Imaginarius/mkxp-z-lanczos-blitting

Don't use framebuffer blitting if shader-based interpolation is needed
This commit is contained in:
Splendide Imaginarius 2024-03-22 02:52:40 +00:00 committed by GitHub
commit ef822d1806
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 4 additions and 2 deletions

View file

@ -243,7 +243,9 @@
// capable of it. Some drivers carry buggy
// implementations of this functionality, so
// disabling it can be used as a workaround.
// Does nothing on macOS.
// Does nothing on macOS. Force-disabled when
// smoothScaling or smoothScalingDown isn't
// Nearest-Neighbor or Bilinear.
// (default: disabled)
//
// "enableBlitting": false,

View file

@ -138,7 +138,7 @@ void vaoUnbind(VAO &vao)
}
}
#define HAVE_NATIVE_BLIT gl.BlitFramebuffer
#define HAVE_NATIVE_BLIT (gl.BlitFramebuffer && shState->config().smoothScaling <= Bilinear && shState->config().smoothScalingDown <= Bilinear)
int blitScaleIsSpecial(TEXFBO &target, bool targetPreferHires, const IntRect &targetRect, TEXFBO &source, const IntRect &sourceRect)
{