[Scummvm-git-logs] scummvm branch-2-8 -> c5c2e227d38365ffa01f274ea8134a71e3eac45c

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


Commit: c5c2e227d38365ffa01f274ea8134a71e3eac45c
    https://github.com/scummvm/scummvm/commit/c5c2e227d38365ffa01f274ea8134a71e3eac45c
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2023-12-09T18:11:53+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