Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClément Foucault <foucault.clem@gmail.com>2019-01-10 00:26:52 +0300
committerClément Foucault <foucault.clem@gmail.com>2019-01-11 18:00:23 +0300
commit86ec304ffabcb3df6853753f0beb4d316c03adf8 (patch)
tree4a0875b03601b51c756997bb0a3e0e5548a25802 /source/blender/windowmanager
parent74260a2b6da86e3f6da0a37afc6d47338c1be034 (diff)
WM: Use draw manager to draw UV image editor spaces
This is in order to use batch cache directly without using tricks like batch presets reseting the VAOs. Note: For now it also create a depth buffer for this area which is not needed. We could get rid of this to lower VRAM usage.
Diffstat (limited to 'source/blender/windowmanager')
-rw-r--r--source/blender/windowmanager/intern/wm_draw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c
index d6058ac0d28..c811a52c0e9 100644
--- a/source/blender/windowmanager/intern/wm_draw.c
+++ b/source/blender/windowmanager/intern/wm_draw.c
@@ -213,7 +213,7 @@ static void wm_region_test_render_do_draw(const Scene *scene, struct Depsgraph *
static bool wm_region_use_viewport(ScrArea *sa, ARegion *ar)
{
- return (sa->spacetype == SPACE_VIEW3D && ar->regiontype == RGN_TYPE_WINDOW);
+ return (ELEM(sa->spacetype, SPACE_VIEW3D, SPACE_IMAGE) && ar->regiontype == RGN_TYPE_WINDOW);
}
/********************** draw all **************************/