summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2016-10-31 19:45:17 +0100
committerKonstantin Käfer <mail@kkaefer.com>2016-11-01 10:46:04 +0100
commitf7801e5d82d272d53db6925a325391e5da5c842e (patch)
treec44b8d9cd6218b470406cfe09dc8dcf21a5a7b2d /src
parentdfd4057121fa4214d75158687d838d13bab02d19 (diff)
downloadqtlocation-mapboxgl-f7801e5d82d272d53db6925a325391e5da5c842e.tar.gz
[core] correctly set the framebuffer size on retina screens
Also asserts in Debug mode that the internal state and the OpenGL state are identical
Diffstat (limited to 'src')
-rw-r--r--src/mbgl/gl/value.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mbgl/gl/value.hpp b/src/mbgl/gl/value.hpp
index 6296d64416..1f01d4e71a 100644
--- a/src/mbgl/gl/value.hpp
+++ b/src/mbgl/gl/value.hpp
@@ -183,6 +183,10 @@ constexpr bool operator!=(const Viewport::Type& a, const Viewport::Type& b) {
return a.x != b.x || a.y != b.y || a.size != b.size;
}
+constexpr bool operator==(const Viewport::Type& a, const Viewport::Type& b) {
+ return !(a != b);
+}
+
struct BindFramebuffer {
using Type = FramebufferID;
static const constexpr Type Default = 0;