Fix assert when loading file with multiple windows opened
[blender.git] / source / blender / windowmanager / intern / wm_window.c
index c1006db34efba8626c08bc4d1d04cb5e5a888623..4b26532742b6d29fefbfaaf973a2ca06877e8c58 100644 (file)
@@ -123,7 +123,6 @@ static struct WMInitStruct {
 /* ******** win open & close ************ */
 
 static void wm_window_set_drawable(wmWindowManager *wm, wmWindow *win, bool activate);
-static void wm_window_clear_drawable(wmWindowManager *wm);
 
 /* XXX this one should correctly check for apple top header...
  * done for Cocoa : returns window contents (and not frame) max size*/
@@ -202,7 +201,6 @@ static void wm_ghostwindow_destroy(wmWindowManager *wm, wmWindow *win)
                GHOST_DisposeWindow(g_system, win->ghostwin);
                win->ghostwin = NULL;
                win->gpuctx = NULL;
-
        }
 }
 
@@ -1103,7 +1101,7 @@ static void wm_window_set_drawable(wmWindowManager *wm, wmWindow *win, bool acti
        immActivate();
 }
 
-static void wm_window_clear_drawable(wmWindowManager *wm)
+void wm_window_clear_drawable(wmWindowManager *wm)
 {
        if (wm->windrawable) {
                BLF_batch_reset();