[Scummvm-git-logs] scummvm master -> 6fa7a6f30f81ce7f8e1c5960b079ff4f1ddeaa26
lephilousophe
noreply at scummvm.org
Fri Nov 11 12:25:22 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:
6fa7a6f30f BACKENDS: OPENGL: Check if libretro is here before loading shader
Commit: 6fa7a6f30f81ce7f8e1c5960b079ff4f1ddeaa26
https://github.com/scummvm/scummvm/commit/6fa7a6f30f81ce7f8e1c5960b079ff4f1ddeaa26
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-11-11T13:24:55+01:00
Commit Message:
BACKENDS: OPENGL: Check if libretro is here before loading shader
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 22357b5482e..7af76dc5f31 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -349,6 +349,11 @@ bool OpenGLGraphicsManager::setShader(const Common::String &fileName) {
bool OpenGLGraphicsManager::loadShader(const Common::String &fileName) {
#if !USE_FORCED_GLES
+ if (!_libretroPipeline) {
+ warning("Libretro is not supported");
+ return true;
+ }
+
// Load selected shader preset
if (!fileName.empty()) {
if (!_libretroPipeline->open(Common::FSNode(fileName))) {
More information about the Scummvm-git-logs
mailing list