]> git.sesse.net Git - movit/blobdiff - util.cpp
Fix a C++11 compatibility issue.
[movit] / util.cpp
index f1b838a2cecc12504bb4c4217a083136de750c60..70c9af2dc0d91be4951db50e90f9c6d79e77ba36 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);