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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user