[Scummvm-git-logs] scummvm master -> 373f872dfac5184be5d3c3e3ca5e3d972d3b7491

aquadran aquadran at gmail.com
Mon Nov 9 16:41:30 UTC 2020


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:
373f872dfa GRAPHICS: Fix no shader error on Raspberry PI


Commit: 373f872dfac5184be5d3c3e3ca5e3d972d3b7491
    https://github.com/scummvm/scummvm/commit/373f872dfac5184be5d3c3e3ca5e3d972d3b7491
Author: Laurent Merckx (laurent-merckx at skynet.be)
Date: 2020-11-09T17:41:26+01:00

Commit Message:
GRAPHICS: Fix no shader error on Raspberry PI

Changed paths:
    graphics/opengl/shader.cpp


diff --git a/graphics/opengl/shader.cpp b/graphics/opengl/shader.cpp
index 552125445c..ff552e5fe1 100644
--- a/graphics/opengl/shader.cpp
+++ b/graphics/opengl/shader.cpp
@@ -136,6 +136,14 @@ ShaderGL::ShaderGL(const Common::String &name, GLuint vertexShader, GLuint fragm
 	}
 	glLinkProgram(shaderProgram);
 
+	GLint status;
+	glGetProgramiv(shaderProgram, GL_LINK_STATUS, &status);
+	if (status != GL_TRUE) {
+		char buffer[512];
+		glGetProgramInfoLog(shaderProgram, 512, NULL, buffer);
+		error("Could not link shader %s: %s", name.c_str(), buffer);
+	}
+
 	glDetachShader(shaderProgram, vertexShader);
 	glDetachShader(shaderProgram, fragmentShader);
 




More information about the Scummvm-git-logs mailing list