gl: Fix warnings and enable trat warning as error.

This commit is contained in:
Vincent Lejeune 2016-01-13 00:25:58 +01:00
parent 38531459df
commit 69272edba6
8 changed files with 25 additions and 17 deletions

View file

@ -217,7 +217,7 @@ void GLFragmentProgram::Compile()
id = glCreateShader(GL_FRAGMENT_SHADER);
const char* str = shader.c_str();
const int strlen = shader.length();
const int strlen = gsl::narrow<int>(shader.length());
glShaderSource(id, 1, &str, &strlen);
glCompileShader(id);