diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2015-01-21 12:01:06 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2015-02-04 10:49:05 +0100 |
commit | 5503aef6907b1fea74d6bdbe696f02b9f016f752 (patch) | |
tree | e0d8290fa42d7594e96e341d404f555e185a58d8 /src/mbgl/geometry/buffer.hpp | |
parent | 31a0d18ca1961b1cfb0785a1921b1f093167ebda (diff) | |
download | qtlocation-mapboxgl-5503aef6907b1fea74d6bdbe696f02b9f016f752.tar.gz |
make vaos immovable
Diffstat (limited to 'src/mbgl/geometry/buffer.hpp')
-rw-r--r-- | src/mbgl/geometry/buffer.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mbgl/geometry/buffer.hpp b/src/mbgl/geometry/buffer.hpp index 0b28f77d0a..3649574bbf 100644 --- a/src/mbgl/geometry/buffer.hpp +++ b/src/mbgl/geometry/buffer.hpp @@ -80,7 +80,7 @@ protected: } } pos += itemSize; - return static_cast<char *>(array) + (pos - itemSize); + return reinterpret_cast<char *>(array) + (pos - itemSize); } // Get a pointer to the item at a given index. @@ -92,7 +92,7 @@ protected: if (i * itemSize >= pos) { throw new std::runtime_error("Can't get element after array bounds"); } else { - return static_cast<char *>(array) + (i * itemSize); + return reinterpret_cast<char *>(array) + (i * itemSize); } } |