[glfw] Fix viewport not being resized
Reproducible on Linux. On OSX, map looks slightly scaled.
This commit is contained in:
committed by
Thiago Marcos P. Santos
parent
f97e36acc8
commit
e8065cfc10
@@ -386,6 +386,7 @@ void GLFWView::onFramebufferResize(GLFWwindow *window, int width, int height) {
|
||||
GLFWView *view = reinterpret_cast<GLFWView *>(glfwGetWindowUserPointer(window));
|
||||
view->fbWidth = width;
|
||||
view->fbHeight = height;
|
||||
view->bind();
|
||||
|
||||
// This is only triggered when the framebuffer is resized, but not the window. It can
|
||||
// happen when you move the window between screens with a different pixel ratio.
|
||||
|
||||
Reference in New Issue
Block a user