[Scummvm-git-logs] scummvm master -> d398034fe5326ee888685e39c3da3134da07c101

lephilousophe noreply at scummvm.org
Sun Oct 16 18:43:16 UTC 2022


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
d398034fe5 BACKENDS: OPENGL: Enable filtering when using scaling shaders


Commit: d398034fe5326ee888685e39c3da3134da07c101
    https://github.com/scummvm/scummvm/commit/d398034fe5326ee888685e39c3da3134da07c101
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-10-16T20:42:54+02:00

Commit Message:
BACKENDS: OPENGL: Enable filtering when using scaling shaders

Changed paths:
    backends/graphics/opengl/opengl-graphics.cpp


diff --git a/backends/graphics/opengl/opengl-graphics.cpp b/backends/graphics/opengl/opengl-graphics.cpp
index 1ecedade297..7b8f152e4c3 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -1523,9 +1523,10 @@ void OpenGLGraphicsManager::recalculateCursorScaling() {
 void OpenGLGraphicsManager::updateLinearFiltering() {
 #if !USE_FORCED_GLES
 	if (_libretroPipeline && _libretroPipeline->isInitialized()) {
-		// Filtering clashes with LibRetro shaders, so it's explicitly disabled here.
+		// Apply filtering in LibRetro first input texture which is _gameScreenTarget
 		if (_gameScreen) {
 			_gameScreen->enableLinearFiltering(false);
+			_gameScreenTarget->getTexture()->enableLinearFiltering(_currentState.filtering);
 		}
 
 		if (_cursor) {




More information about the Scummvm-git-logs mailing list