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:
authorMichel Selten <michel@mselten.demon.nl>2003-08-06 18:57:11 +0400
committerMichel Selten <michel@mselten.demon.nl>2003-08-06 18:57:11 +0400
commit598da2441358d3a34f5483bf6032a2a084952fe2 (patch)
treefc1ccbdfb91c408b420f2f366168f1d167628945
parentcf322b1a9aa296c83169cb70f1158ee00af1beb3 (diff)
* Fixed crash when editing Ipo curves on Linux.
This problem only occurs on Linux with NVidia cards. Fixed by Timo Mihaljov (noid).
-rw-r--r--source/blender/src/drawipo.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/source/blender/src/drawipo.c b/source/blender/src/drawipo.c
index e82e19b3cff..4e06155742f 100644
--- a/source/blender/src/drawipo.c
+++ b/source/blender/src/drawipo.c
@@ -872,7 +872,6 @@ static void draw_ipovertices(int sel)
if(G.f & G_PICKSEL) return;
glPointSize(3.0);
- glBegin(GL_POINTS);
ei= G.sipo->editipo;
for(nr=0; nr<G.sipo->totipo; nr++, ei++) {
@@ -889,6 +888,14 @@ static void draw_ipovertices(int sel)
}
cpack(col);
+
+
+ /* We can't change the color in the middle of
+ * GL_POINTS because then Blender will segfault
+ * on TNT2 / Linux with NVidia's drivers
+ * (at least up to ver. 4349) */
+
+ glBegin(GL_POINTS);
bezt= ei->icu->bezt;
a= ei->icu->totvert;
@@ -935,10 +942,11 @@ static void draw_ipovertices(int sel)
bezt++;
}
+
+ glEnd();
}
}
- glEnd();
glPointSize(1.0);
}