[glfw] Fix map not resizing on Linux

Apparently GLFW is implicitly calling glViewport on macOS but
not on Linux. Force setting the viewport instead of assuming a value.
This commit is contained in:
Thiago Marcos P. Santos
2019-11-29 13:38:26 +02:00
parent af0d46c367
commit 105ddad389

View File

@@ -58,7 +58,7 @@ mbgl::gl::ProcAddress GLFWGLBackend::getExtensionFunctionPointer(const char* nam
void GLFWGLBackend::updateAssumedState() {
assumeFramebufferBinding(0);
assumeViewport(0, 0, size);
setViewport(0, 0, size);
}
mbgl::Size GLFWGLBackend::getSize() const {