aboutsummaryrefslogtreecommitdiff
path: root/backends/platform/android/texture.cpp
diff options
context:
space:
mode:
authorColin Snover2017-11-24 10:06:40 -0600
committerColin Snover2017-11-25 20:19:01 -0600
commitfbefda8a2fb7441690b5a47004fc7009c9bc7424 (patch)
tree6c3d7b7e87152ff969b5517ec67a825030918151 /backends/platform/android/texture.cpp
parent2a22c16b916602ee9ced429455add5707b0c4f74 (diff)
downloadscummvm-rg350-fbefda8a2fb7441690b5a47004fc7009c9bc7424.tar.gz
scummvm-rg350-fbefda8a2fb7441690b5a47004fc7009c9bc7424.tar.bz2
scummvm-rg350-fbefda8a2fb7441690b5a47004fc7009c9bc7424.zip
ANDROID: Fix illegal-in-C++11 narrowing conversions
Diffstat (limited to 'backends/platform/android/texture.cpp')
-rw-r--r--backends/platform/android/texture.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/platform/android/texture.cpp b/backends/platform/android/texture.cpp
index 165396b82b..f8c09bfb43 100644
--- a/backends/platform/android/texture.cpp
+++ b/backends/platform/android/texture.cpp
@@ -185,9 +185,9 @@ void GLESBaseTexture::drawTexture(GLshort x, GLshort y, GLshort w, GLshort h) {
const GLshort vertices[] = {
x, y,
- x + w, y,
- x, y + h,
- x + w, y + h,
+ GLshort(x + w), y,
+ x, GLshort(y + h),
+ GLshort(x + w), GLshort(y + h)
};
GLCALL(glVertexPointer(2, GL_SHORT, 0, vertices));