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:
authorMike Erwin <significant.bit@gmail.com>2016-01-16 06:59:42 +0300
committerMike Erwin <significant.bit@gmail.com>2016-01-16 07:51:29 +0300
commit2d71d13ea2cb7a7640e5139dc24341bd58416d57 (patch)
tree48061a6f98f4212de685e3dc8279270a5427e898 /source/blender/editors/transform/transform_manipulator.c
parent31375a1b21a98f5ce6abdd46a41a1e287d3d5050 (diff)
OpenGL: fixes related to GL_POINTS
I put all usage of GL_POINTS under the microscope. Fixed problems & optimized a couple of spots. - reduce calls to glPointSize by about 50% - draw selected & unselected vertices together for UV editor & EditMesh - draw initial gpencil stroke point the proper size - a few other smaller fixes New policy: each GL_POINTS draw call needs to set its desired point size. This eliminates half our calls to glPointSize (setting it back to its 1.0 default after every draw).
Diffstat (limited to 'source/blender/editors/transform/transform_manipulator.c')
-rw-r--r--source/blender/editors/transform/transform_manipulator.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/editors/transform/transform_manipulator.c b/source/blender/editors/transform/transform_manipulator.c
index 3ce0de5a6a1..0f2af58e0ce 100644
--- a/source/blender/editors/transform/transform_manipulator.c
+++ b/source/blender/editors/transform/transform_manipulator.c
@@ -1326,6 +1326,7 @@ static void draw_manipulator_scale(
}
}
+#if 0 // XXX
/* if shiftkey, center point as last, for selectbuffer order */
if (is_picksel) {
int shift = 0; // XXX
@@ -1333,11 +1334,13 @@ static void draw_manipulator_scale(
if (shift) {
glTranslatef(0.0, -dz, 0.0);
GPU_select_load_id(MAN_SCALE_C);
+ /* TODO: set glPointSize before drawing center point */
glBegin(GL_POINTS);
glVertex3f(0.0, 0.0, 0.0);
glEnd();
}
}
+#endif
/* restore */
glLoadMatrixf(rv3d->viewmat);