diff options
author | Xiang, Haihao <[email protected]> | 2008-10-08 09:30:12 +0800 |
---|---|---|
committer | Xiang, Haihao <[email protected]> | 2008-10-08 09:30:12 +0800 |
commit | 94d3a30df759bb7c2724fdcee9e89a350d3a4d8b (patch) | |
tree | 3fbf0f022fa14b23a7bab25eac7e842ae01e602d /src/mesa | |
parent | 7cb723a3fd4d90ad6efa5f440e5e39f8aaa9f79c (diff) |
i965: Fix a potential assertion failure.
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_draw_upload.c | 6 |
1 files changed, 4 insertions, 2 deletions
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; |