Merge branch 'blender-v2.90-release'
This commit is contained in:
@@ -51,6 +51,7 @@
|
||||
#include "ED_screen.h"
|
||||
#include "ED_view3d.h"
|
||||
|
||||
#include "GPU_context.h"
|
||||
#include "GPU_framebuffer.h"
|
||||
#include "GPU_immediate.h"
|
||||
#include "GPU_state.h"
|
||||
@@ -998,6 +999,7 @@ void wm_draw_update(bContext *C)
|
||||
wmWindowManager *wm = CTX_wm_manager(C);
|
||||
wmWindow *win;
|
||||
|
||||
GPU_context_main_lock();
|
||||
BKE_image_free_unused_gpu_textures();
|
||||
|
||||
for (win = wm->windows.first; win; win = win->next) {
|
||||
@@ -1035,6 +1037,8 @@ void wm_draw_update(bContext *C)
|
||||
|
||||
/* Draw non-windows (surfaces) */
|
||||
wm_surfaces_iter(C, wm_draw_surface);
|
||||
|
||||
GPU_context_main_unlock();
|
||||
}
|
||||
|
||||
void wm_draw_region_clear(wmWindow *win, ARegion *UNUSED(region))
|
||||
|
||||
Reference in New Issue
Block a user