From fbefda8a2fb7441690b5a47004fc7009c9bc7424 Mon Sep 17 00:00:00 2001 From: Colin Snover Date: Fri, 24 Nov 2017 10:06:40 -0600 Subject: ANDROID: Fix illegal-in-C++11 narrowing conversions --- backends/platform/android/texture.cpp | 6 +++--- 1 file 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)); -- cgit v1.2.3