summaryrefslogtreecommitdiff
path: root/platform/osx/gl_manager_osx_legacy.mm
diff options
context:
space:
mode:
Diffstat (limited to 'platform/osx/gl_manager_osx_legacy.mm')
-rw-r--r--platform/osx/gl_manager_osx_legacy.mm4
1 files changed, 2 insertions, 2 deletions
diff --git a/platform/osx/gl_manager_osx_legacy.mm b/platform/osx/gl_manager_osx_legacy.mm
index fbe64e32a3..c769d7f5c5 100644
--- a/platform/osx/gl_manager_osx_legacy.mm
+++ b/platform/osx/gl_manager_osx_legacy.mm
@@ -167,8 +167,8 @@ void GLManager_OSX::make_current() {
}
void GLManager_OSX::swap_buffers() {
- for (Map<DisplayServer::WindowID, GLWindow>::Element *E = windows.front(); E; E = E->next()) {
- [E->get().context flushBuffer];
+ for (const KeyValue<DisplayServer::WindowID, GLWindow> &E : windows) {
+ [E.value.context flushBuffer];
}
}