[colobot] 382/390: Second attempt at correcting compilation error

Didier Raboud odyx at moszumanska.debian.org
Fri Jun 12 14:22:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch upstream/latest
in repository colobot.

commit d477caed3e96839337e5fc8ec12cb6a248f49965
Author: Tomasz Kapuściński <tomaszkax86 at gmail.com>
Date:   Mon Jun 1 18:41:14 2015 +0200

    Second attempt at correcting compilation error
---
 src/graphics/opengl/glutil.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/graphics/opengl/glutil.cpp b/src/graphics/opengl/glutil.cpp
index 119a869..5dbb97e 100644
--- a/src/graphics/opengl/glutil.cpp
+++ b/src/graphics/opengl/glutil.cpp
@@ -179,7 +179,7 @@ GLint LoadShader(GLint type, const char* filename)
     PHYSFS_close(file);
 
     GLuint shader = glCreateShader(type);
-    glShaderSource(shader, 1, sources, nullptr);
+    glShaderSource(shader, 1, const_cast<const GLchar**>(sources), nullptr);
     glCompileShader(shader);
 
     GLint status;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git



More information about the Pkg-games-commits mailing list