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:
authorBastien Montagne <montagne29@wanadoo.fr>2017-04-10 16:16:59 +0300
committerBastien Montagne <montagne29@wanadoo.fr>2017-04-10 16:17:26 +0300
commit9fd3435a93b45b80237419b1b218afdce72d4b9d (patch)
treea2d45089b59162a8926880e3d7a97312ee42261b /source/blender/editors/space_outliner/outliner_draw.c
parent2d158a425dc5c9548a3622f9bc4f65d796c5244d (diff)
First batch of PRIM_QUAD_XXX replacement by PRIM_TRIANGLES.
Diffstat (limited to 'source/blender/editors/space_outliner/outliner_draw.c')
-rw-r--r--source/blender/editors/space_outliner/outliner_draw.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/source/blender/editors/space_outliner/outliner_draw.c b/source/blender/editors/space_outliner/outliner_draw.c
index afe6d9ae121..bf620686c74 100644
--- a/source/blender/editors/space_outliner/outliner_draw.c
+++ b/source/blender/editors/space_outliner/outliner_draw.c
@@ -1799,18 +1799,19 @@ 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);
+ immBegin(PRIM_TRIANGLES, 6 * tot);
while (tot--) {
y1 -= 2 * UI_UNIT_Y;
y2 = y1 + UI_UNIT_Y;
immVertex2f(pos, x1, y1);
immVertex2f(pos, x2, y1);
immVertex2f(pos, x2, y2);
+
+ immVertex2f(pos, x1, y1);
+ immVertex2f(pos, x2, y2);
immVertex2f(pos, x1, y2);
}
immEnd();
-#endif
}
immUnbindProgram();
}