Fix a C++11 compatibility issue.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 10:12:43 +0000 (12:12 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Tue, 2 Oct 2012 10:12:43 +0000 (12:12 +0200)
util.cpp

index f1b838a..70c9af2 100644 (file)
--- a/util.cpp
+++ b/util.cpp
@@ -69,7 +69,7 @@ GLuint compile_shader(const std::string &shader_src, GLenum type)
 {
        GLuint obj = glCreateShader(type);
        const GLchar* source[] = { shader_src.data() };
-       const GLint length[] = { shader_src.size() };
+       const GLint length[] = { (GLint)shader_src.size() };
        glShaderSource(obj, 1, source, length);
        glCompileShader(obj);