X-Git-Url: https://git.sesse.net/?p=movit;a=blobdiff_plain;f=util.cpp;h=70c9af2dc0d91be4951db50e90f9c6d79e77ba36;hp=f1b838a2cecc12504bb4c4217a083136de750c60;hb=bc98d3dd04e1fe6c71751b38162024491e3cea70;hpb=49941686f9e5c86f56b5f3aba7a628d72bc14533 diff --git a/util.cpp b/util.cpp index f1b838a..70c9af2 100644 --- 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);