[core] correctly set the framebuffer size on retina screens
Also asserts in Debug mode that the internal state and the OpenGL state are identical
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user