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:
authorDalai Felinto <dfelinto@gmail.com>2017-04-10 13:21:13 +0300
committerDalai Felinto <dfelinto@gmail.com>2017-04-10 13:21:13 +0300
commitf87815705b8fcdc4f4a527303429a32ecca3fd88 (patch)
tree6b146c24c2978ec144426b267650965a7e86a6af /source/blender/editors/space_view3d/drawobject.c
parentb6ba507c1be23fd9e6af975ed9dddcf7a57cf8f3 (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_view3d/drawobject.c')
-rw-r--r--source/blender/editors/space_view3d/drawobject.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source/blender/editors/space_view3d/drawobject.c b/source/blender/editors/space_view3d/drawobject.c
index 131483cf879..c9f697b1cc1 100644
--- a/source/blender/editors/space_view3d/drawobject.c
+++ b/source/blender/editors/space_view3d/drawobject.c
@@ -1894,6 +1894,7 @@ static void drawcamera_volume(float near_plane[4][3], float far_plane[4][3], boo
drawcamera_frame(far_plane, filled, pos);
if (filled) {
+#ifdef WITH_GL_PROFILE_COMPAT
immBegin(PRIM_QUADS_XXX, 16); /* TODO(merwin): use PRIM_TRIANGLE_STRIP here */
immVertex3fv(pos, near_plane[0]);
immVertex3fv(pos, far_plane[0]);
@@ -1915,6 +1916,7 @@ static void drawcamera_volume(float near_plane[4][3], float far_plane[4][3], boo
immVertex3fv(pos, near_plane[3]);
immVertex3fv(pos, far_plane[3]);
immEnd();
+#endif
}
else {
immBegin(PRIM_LINES, 8);
@@ -5633,7 +5635,9 @@ static void draw_particle_arrays_new(int draw_as, int ob_dt, int select,
else
glPolygonMode(GL_FRONT_AND_BACK, GL_FILL);
+#ifdef WITH_GL_PROFILE_COMPAT
draw_vertex_array(PRIM_QUADS_XXX, vert, nor, color, 0, 4 * totpoint, col);
+#endif
break;
default:
draw_vertex_array(PRIM_POINTS, vert, nor, color, 0, totpoint, col);
@@ -7990,7 +7994,11 @@ static void imm_draw_box(const float vec[8][3], bool solid, unsigned pos)
if (solid) {
indices = quad_indices;
+#ifdef WITH_GL_PROFILE_COMPAT
prim_type = PRIM_QUADS_XXX;
+#else
+ return;
+#endif
}
else {
indices = line_indices;