diff options
author | Johannes Schickel | 2013-01-09 06:59:22 +0100 |
---|---|---|
committer | Johannes Schickel | 2013-01-09 07:24:37 +0100 |
commit | 0a495f7faa35530510549ad6510783e993fb2b6f (patch) | |
tree | 25b6906ba5329c781a402ee6aadc5c871daa06bd | |
parent | fe1a7794417456403a4bd38b8ae3e627a86b892e (diff) | |
download | scummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.tar.gz scummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.tar.bz2 scummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.zip |
OPENGL: Silence C++11 narrowing warning.
-rw-r--r-- | backends/graphics/opengl/gltexture.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backends/graphics/opengl/gltexture.cpp b/backends/graphics/opengl/gltexture.cpp index ce69dc4aab..48da7f8e93 100644 --- a/backends/graphics/opengl/gltexture.cpp +++ b/backends/graphics/opengl/gltexture.cpp @@ -177,10 +177,10 @@ void GLTexture::drawTexture(GLshort x, GLshort y, GLshort w, GLshort h) { // Calculate the screen rect where the texture will be drawn const GLshort vertices[] = { - x, y, - x + w, y, - x, y + h, - x + w, y + h, + x, y, + (GLshort)(x + w), y, + x, (GLshort)(y + h), + (GLshort)(x + w), (GLshort)(y + h), }; glVertexPointer(2, GL_SHORT, 0, vertices); CHECK_GL_ERROR(); |