aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorJohannes Schickel2013-01-09 06:59:22 +0100
committerJohannes Schickel2013-01-09 07:24:37 +0100
commit0a495f7faa35530510549ad6510783e993fb2b6f (patch)
tree25b6906ba5329c781a402ee6aadc5c871daa06bd /backends
parentfe1a7794417456403a4bd38b8ae3e627a86b892e (diff)
downloadscummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.tar.gz
scummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.tar.bz2
scummvm-rg350-0a495f7faa35530510549ad6510783e993fb2b6f.zip
OPENGL: Silence C++11 narrowing warning.
Diffstat (limited to 'backends')
-rw-r--r--backends/graphics/opengl/gltexture.cpp8
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();