From: Xiang, Haihao Date: Wed, 8 Oct 2008 01:30:12 +0000 (+0800) Subject: i965: Fix a potential assertion failure. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=94d3a30df759bb7c2724fdcee9e89a350d3a4d8b;p=mesa.git i965: Fix a potential assertion failure. --- diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c index 303eaac5cf9..cc3d9396acd 100644 --- a/src/mesa/drivers/dri/i965/brw_draw_upload.c +++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c @@ -365,8 +365,10 @@ static void brw_prepare_vertices(struct brw_context *brw) if (i == 0) { /* Position array not properly enabled: */ - if (input->glarray->StrideB == 0) - return; + if (input->glarray->StrideB == 0) { + intel->Fallback = 1; + return; + } interleave = input->glarray->StrideB; ptr = input->glarray->Ptr;