diff options
author | Roland Scheidegger <[email protected]> | 2012-11-02 16:48:49 +0100 |
---|---|---|
committer | José Fonseca <[email protected]> | 2012-11-15 17:37:06 +0000 |
commit | 94f9ea03a12fe1adf90c0e5defb0063cd568b537 (patch) | |
tree | dadb894a7c54d1cb75dca940ec7e1843100ae9a2 /src/gallium/winsys | |
parent | 3893593732b07c91543530392f44f57fe343d8c4 (diff) |
draw: fix crashes with out-of-bounds indices
The passthrough pipeline needs to check index values (which might be passed
through) as they can be invalid (which causes crashes and various assertion
failures if the clip code runs). Obviously, rendering won't be well-defined,
but those bogus indices might come directly from apps.
There were already debug printfs which reported the out-of-bounds indices but
we really ought to not crash.
While checking at that point doesn't seem like the most efficient solution,
it seems there isn't really another appropriate function to do it.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/winsys')
0 files changed, 0 insertions, 0 deletions