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:
authorMatt Ebb <matt@mke3.net>2010-01-06 09:51:04 +0300
committerMatt Ebb <matt@mke3.net>2010-01-06 09:51:04 +0300
commitc37df988067ca6d105e4386e773907d5432c36c9 (patch)
treeb1e2acf1c26f03af190e8804a5cfc85e60b1de95
parent1954468397dbad2c15fe0418f0b67f0b345dd7ab (diff)
*Disabled filled lasso drawing on Windows for now, was causing some strange problems,
perhaps GLU incompatibilities? If any Windows GL guru can help here, it would be most appreciated!
-rw-r--r--source/blender/windowmanager/intern/wm_gesture.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_gesture.c b/source/blender/windowmanager/intern/wm_gesture.c
index d297c6ce171..c0717f233d3 100644
--- a/source/blender/windowmanager/intern/wm_gesture.c
+++ b/source/blender/windowmanager/intern/wm_gesture.c
@@ -209,6 +209,9 @@ static void wm_gesture_draw_circle(wmWindow *win, wmGesture *gt)
}
+#ifndef WIN32
+/* Disabled for now, causing problems on Windows.. */
+
/* more than 64 intersections will just leak.. not much and not a likely scenario */
typedef struct TessData { int num; short *intersections[64]; } TessData;
@@ -237,10 +240,14 @@ static void free_tess_data(GLUtesselator *tess, TessData *td)
gluDeleteTess(tess);
}
+#endif
+
static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt)
{
short *lasso= (short *)gt->customdata;
int i;
+
+#ifndef WIN32
TessData *data=MEM_callocN(sizeof(TessData), "tesselation data");
GLUtesselator *tess = gluNewTess();
@@ -263,6 +270,8 @@ static void wm_gesture_draw_lasso(wmWindow *win, wmGesture *gt)
glDisable(GL_BLEND);
free_tess_data(tess, data);
+
+#endif
glEnable(GL_LINE_STIPPLE);
glColor3ub(96, 96, 96);