From c37df988067ca6d105e4386e773907d5432c36c9 Mon Sep 17 00:00:00 2001 From: Matt Ebb Date: Wed, 6 Jan 2010 06:51:04 +0000 Subject: *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! --- source/blender/windowmanager/intern/wm_gesture.c | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- cgit v1.2.3