diff options
author | Matt Ebb <matt@mke3.net> | 2010-01-06 09:51:04 +0300 |
---|---|---|
committer | Matt Ebb <matt@mke3.net> | 2010-01-06 09:51:04 +0300 |
commit | c37df988067ca6d105e4386e773907d5432c36c9 (patch) | |
tree | b1e2acf1c26f03af190e8804a5cfc85e60b1de95 | |
parent | 1954468397dbad2c15fe0418f0b67f0b345dd7ab (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.c | 9 |
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); |