[#7297] Fix knife visualization on MacMini Intel w/ Intel gfx
authorunclezeiv <davide.vercelli@gmail.com>
Thu, 18 Sep 2008 20:37:11 +0000 (20:37 +0000)
committerunclezeiv <davide.vercelli@gmail.com>
Thu, 18 Sep 2008 20:37:11 +0000 (20:37 +0000)
source/blender/src/editmesh_loop.c

index 2c5386b86b66e81c4a7dea33cbe716ad7d5396bd..138dd93e490354e5633f0ab22a19d76708b49330 100644 (file)
@@ -519,6 +519,7 @@ static CutCurve *get_mouse_trail(int *len, char mode, char cutmode, struct GHash
                glDrawBuffer(GL_FRONT);
                headerprint("(LMB) draw, (MMB) constrain to x/y screen axis, (Enter) cut (with Ctrl to select cut line), (Esc) cancel");
        }
+       bglFlush();
        
        persp(PERSP_WIN);
        
@@ -620,14 +621,14 @@ static CutCurve *get_mouse_trail(int *len, char mode, char cutmode, struct GHash
                
                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 */
                        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;