Mercurial > hg > orthanc-stone
changeset 701:58e1faeafb1b refactor-viewport-controller
Fixed truncating conversion warning
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Sun, 19 May 2019 16:26:36 +0200 |
parents | 059e1fd05fd6 |
children | c0a5eb9a4290 |
files | Framework/OpenGL/OpenGLShader.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Framework/OpenGL/OpenGLShader.cpp Sun May 19 16:26:17 2019 +0200 +++ b/Framework/OpenGL/OpenGLShader.cpp Sun May 19 16:26:36 2019 +0200 @@ -35,7 +35,7 @@ GLint sourceStringLengths[1]; sourceString[0] = source.c_str(); - sourceStringLengths[0] = source.length(); + sourceStringLengths[0] = static_cast<GLint>(source.length()); GLuint shader = glCreateShader(type); if (shader == 0)