[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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user