summaryrefslogtreecommitdiffstats
path: root/opengl/tests/filter
diff options
context:
space:
mode:
authorChih-Hung Hsieh <chh@google.com>2014-12-11 10:39:59 -0800
committerChih-Hung Hsieh <chh@google.com>2014-12-11 14:45:56 -0800
commit3bded9177b579d96d72397d73b8f85bba47ec438 (patch)
treec4beca58aa974f2241891ac0ef776a70038ad0f2 /opengl/tests/filter
parenta59d7a6a66a2b8dcb2d00dbd6371fa89ae45ab04 (diff)
downloadframeworks_native-3bded9177b579d96d72397d73b8f85bba47ec438.zip
frameworks_native-3bded9177b579d96d72397d73b8f85bba47ec438.tar.gz
frameworks_native-3bded9177b579d96d72397d73b8f85bba47ec438.tar.bz2
Fix clang -Wc++11-narrowing warnings.
Clang compiler gives warning to implicit conversions of literal structure fields, although the compiler generated implicit conversions are what we want in these cases. Change-Id: I8f04e7f2fa1db0ed1d1937135d9091532eec3d5b
Diffstat (limited to 'opengl/tests/filter')
-rw-r--r--opengl/tests/filter/filter.cpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/opengl/tests/filter/filter.cpp b/opengl/tests/filter/filter.cpp
index 289e6cc..287ee93 100644
--- a/opengl/tests/filter/filter.cpp
+++ b/opengl/tests/filter/filter.cpp
@@ -140,11 +140,12 @@ int main(int argc, char** argv)
//glDrawTexiOES(0, 0, 0, dim, dim);
+ const GLfloat fdim = dim;
const GLfloat vertices[4][2] = {
- { 0, 0 },
- { 0, dim },
- { dim, dim },
- { dim, 0 }
+ { 0, 0 },
+ { 0, fdim },
+ { fdim, fdim },
+ { fdim, 0 }
};
const GLfloat texCoords[4][2] = {