[Bf-committers] Patch: knife on MacMini Intel w/ Intel gfx

Davide Vercelli davide.vercelli at gmail.com
Tue Sep 4 10:15:30 CEST 2007


Micro-patch that fixes the knife tool not displaying properly on
MacMini Intel with Intel graphics.

Ed told me to post it here even though it is probably too late for 2.45...

Cheers,

UncleZeiv
-------------- next part --------------
Index: blender/source/blender/src/editmesh_loop.c
===================================================================
--- blender/source/blender/src/editmesh_loop.c	(revision 11846)
+++ blender/source/blender/src/editmesh_loop.c	(working copy)
@@ -523,6 +523,7 @@
 		headerprint("LMB to draw, Enter to finish (with CTRL to leave only the "
 					"cut line selected), ESC to abort.");
 	}
+	bglFlush();
 	
 	persp(PERSP_WIN);
 	
@@ -624,7 +625,7 @@
 		
 		if ((i>1)&&(i!=lasti)) {  /*Draw recorded part of curve */
 			sdrawline((int)curve[i-2].x, (int)curve[i-2].y, (int)curve[i-1].x, (int)curve[i-1].y);
-			glFlush();
+			bglFlush();
 		}
 		
 		if ((i==lasti)&&(i>0)) { /*Draw rubberband */
@@ -631,7 +632,7 @@
 			glLineWidth(2.0);
 			sdrawXORline((int)curve[i-1].x, (int)curve[i-1].y,(int)mval[0], (int)mval[1]);
 			glLineWidth(1.0);
-			glFlush();
+			bglFlush();
 			rubberband=1;
 		}
 		lasti=i;


More information about the Bf-committers mailing list