diff options
author | Dalai Felinto <dfelinto@gmail.com> | 2017-04-10 13:21:13 +0300 |
---|---|---|
committer | Dalai Felinto <dfelinto@gmail.com> | 2017-04-10 13:21:13 +0300 |
commit | f87815705b8fcdc4f4a527303429a32ecca3fd88 (patch) | |
tree | 6b146c24c2978ec144426b267650965a7e86a6af /source/blender/editors/space_outliner | |
parent | b6ba507c1be23fd9e6af975ed9dddcf7a57cf8f3 (diff) |
Make build with GL 3.3 again
This is a workaround while the PRIM_QUADS_XXX are still in the code
Diffstat (limited to 'source/blender/editors/space_outliner')
-rw-r--r-- | source/blender/editors/space_outliner/outliner_draw.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c index 3e3e0aea346..afe6d9ae121 100644 --- a/source/blender/editors/space_outliner/outliner_draw.c +++ b/source/blender/editors/space_outliner/outliner_draw.c @@ -1799,6 +1799,7 @@ static void outliner_back(ARegion *ar) int tot = (int)floor(ystart - ar->v2d.cur.ymin + 2 * UI_UNIT_Y) / (2 * UI_UNIT_Y); if (tot > 0) { +#ifdef WITH_GL_PROFILE_COMPAT immBegin(PRIM_QUADS_XXX, 4 * tot); while (tot--) { y1 -= 2 * UI_UNIT_Y; @@ -1809,6 +1810,7 @@ static void outliner_back(ARegion *ar) immVertex2f(pos, x1, y2); } immEnd(); +#endif } immUnbindProgram(); } |