mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-01 19:50:25 +01:00
i965: Fix a potential assertion failure.
This commit is contained in:
parent
7cb723a3fd
commit
94d3a30df7
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue