Flush old primitive before starting new one in intelRasterPrimitive.

This commit is contained in:
Keith Whitwell 2006-02-24 10:10:28 +00:00
parent 8d349798da
commit af853b0da7

View file

@ -862,8 +862,12 @@ static void intelRasterPrimitive( GLcontext *ctx, GLenum rprim, GLuint hwprim )
/* Start a new primitive. Arrange to have it flushed later on.
*/
if (hwprim != intel->prim.primitive)
if (hwprim != intel->prim.primitive) {
if (intel->prim.flush)
intel->prim.flush(intel);
intelStartInlinePrimitive( intel, hwprim, INTEL_BATCH_CLIPRECTS );
}
}