Partially revert "Use GL_NEAREST when possible without degrading quality"

The changes to GL_NEAREST for overlay textures and disabling alpha blending in SDL renderer are left intact.

This reverts commit 0f49dca4c0.
This commit is contained in:
Cameron Gutman committed 2026-07-01 21:56:54 -05:00
1 parent a27589fe35
commit c9b03f80f8
2 files changed
+12 -25

No files matched your search

@@ -576,11 +576,6 @@ ReadbackRetry:
// Ensure the viewport is set to the desired video region
SDL_RenderSetViewport(m_Renderer, &dst);
// Use nearest pixel sampling if the video region size is a multiple of the frame size
SDL_SetTextureScaleMode(m_Texture,
dst.w % frame->width == 0 && dst.h % frame->height == 0 ?
SDL_ScaleModeNearest : SDL_ScaleModeLinear);
// Draw the video content itself
SDL_RenderCopy(m_Renderer, m_Texture, nullptr, nullptr);