diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2016-11-04 17:01:22 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2016-11-04 21:24:05 +0100 |
commit | 008a83b91584b8cf406264c5378bdd7ef87683ec (patch) | |
tree | 661e94fe3eb7bcb39a0e93acefce6e30e3d6b3f5 /src/mbgl/gl/types.hpp | |
parent | 176730bff64fc8f935e3337f870b2ff2a930ed15 (diff) | |
download | qtlocation-mapboxgl-008a83b91584b8cf406264c5378bdd7ef87683ec.tar.gz |
[core] add state tracking to pixel store packing alignment
Diffstat (limited to 'src/mbgl/gl/types.hpp')
-rw-r--r-- | src/mbgl/gl/types.hpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mbgl/gl/types.hpp b/src/mbgl/gl/types.hpp index 16a37d58c1..6e1bc5f8e1 100644 --- a/src/mbgl/gl/types.hpp +++ b/src/mbgl/gl/types.hpp @@ -62,5 +62,17 @@ enum class PrimitiveType { TriangleFan = 0x0006 }; +#if not MBGL_USE_GLES2 + +struct PixelStorageType { + int32_t alignment; +}; + +constexpr bool operator!=(const PixelStorageType& a, const PixelStorageType& b) { + return a.alignment != b.alignment; +} + +#endif // MBGL_USE_GLES2 + } // namespace gl } // namespace mbgl |