mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
etnaviv: fix incorrectly failing vertex size assert
Changes the assert to match the comment above. This assert was failing in some cases while running darkplaces. Signed-off-by: Jonathan Marek <jonathan@marek.ca> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
parent
c5ae64ebc7
commit
680d806950
1 changed files with 1 additions and 1 deletions
|
|
@ -574,7 +574,7 @@ etna_vertex_elements_state_create(struct pipe_context *pctx,
|
|||
start_offset = elements[idx].src_offset;
|
||||
|
||||
/* maximum vertex size is 256 bytes */
|
||||
assert(element_size != 0 && end_offset <= 256);
|
||||
assert(element_size != 0 && (end_offset - start_offset) < 256);
|
||||
|
||||
/* check whether next element is consecutive to this one */
|
||||
nonconsecutive = (idx == (num_elements - 1)) ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue