[Scummvm-git-logs] scummvm master -> 34c70f148d3e4060d9aef2bcf781172c905ade19

lephilousophe noreply at scummvm.org
Sat Dec 9 17:12:12 UTC 2023


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:
34c70f148d BACKENDS: OPENGL: Don't update screen if there is no pipeline


Commit: 34c70f148d3e4060d9aef2bcf781172c905ade19
    https://github.com/scummvm/scummvm/commit/34c70f148d3e4060d9aef2bcf781172c905ade19
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-12-09T18:11:30+01:00

Commit Message:
BACKENDS: OPENGL: Don't update screen if there is no pipeline

This avoids crashes when updateScreen is called when context has been
destroyed and not yet created again.

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 fd573a58fec..e35eebfd41a 100644
--- a/backends/graphics/opengl/opengl-graphics.cpp
+++ b/backends/graphics/opengl/opengl-graphics.cpp
@@ -633,7 +633,7 @@ void OpenGLGraphicsManager::renderCursor() {
 }
 
 void OpenGLGraphicsManager::updateScreen() {
-	if (!_gameScreen) {
+	if (!_gameScreen || !_pipeline) {
 		return;
 	}
 




More information about the Scummvm-git-logs mailing list