diff options
author | Fabian Bieler <[email protected]> | 2013-05-25 13:33:42 +0200 |
---|---|---|
committer | Paul Berry <[email protected]> | 2013-08-27 15:11:52 -0700 |
commit | cd18269705c948f5141478a48cf82a1fddd06b83 (patch) | |
tree | f7c6f2b21de6839aaf9252172c63267b2e0571bd /common.py | |
parent | ac74de37109b62ca092827ca263de1935e2d1c08 (diff) |
mesa/main: Check for 0 size draws after validation.
When validating draw parameters move check for 0 draw count last
(drawing with count 0 is not an error), so that other parameters (e.g.: the
primitive type) are validated and the correct errors (if applicable) are
generated.
>From the OpenGL 3.3 spec page 33 (page 48 of the PDF):
"[Regarding DrawArraysOneInstance, in terms of which other draw operations
are defined:]
If count is negative, an INVALID_VALUE error is generated."
This patch also changes the bahavior of MultiDrawElements to perform the draw
operation if some primitive's index counts are zero.
Signed-off-by: Fabian Bieler <[email protected]>
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'common.py')
0 files changed, 0 insertions, 0 deletions