commit | 794e0009ef747b49cd98d7d84434841a7ce5b222 | [log] [tgz] |
---|---|---|
author | Minmin Gong <mgong@microsoft.com> | Tue Apr 07 18:31:54 2015 -0700 |
committer | Geoff Lang <geofflang@chromium.org> | Thu Apr 09 20:13:48 2015 +0000 |
tree | 9794196f609f464b7ae9f1a79e20d886c2355746 | |
parent | b3584fb4906588611a8e8fb59ffabdaa96e37006 [diff] [blame] |
Fix and enable warning C4244 (Conversion from 'type1' to 'type2', possible loss of data) Change-Id: Id0e06d7d6600344d858f00dabc219d79289bbc82 Reviewed-on: https://chromium-review.googlesource.com/265020 Tested-by: Minmin Gong <mgong@microsoft.com> Reviewed-by: Jamie Madill <jmadill@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/libANGLE/renderer/d3d/VertexDataManager.cpp b/src/libANGLE/renderer/d3d/VertexDataManager.cpp index cb70b9e..91770dc 100644 --- a/src/libANGLE/renderer/d3d/VertexDataManager.cpp +++ b/src/libANGLE/renderer/d3d/VertexDataManager.cpp
@@ -291,7 +291,7 @@ if (directStorage) { outputElementSize = ComputeVertexAttributeStride(attrib); - streamOffset = attrib.offset + outputElementSize * firstVertexIndex; + streamOffset = static_cast<unsigned int>(attrib.offset + outputElementSize * firstVertexIndex); } else if (staticBuffer) {