summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/extensions.c
diff options
context:
space:
mode:
authorFabian Bieler <[email protected]>2013-05-25 13:33:42 +0200
committerPaul Berry <[email protected]>2013-08-27 15:11:52 -0700
commitcd18269705c948f5141478a48cf82a1fddd06b83 (patch)
treef7c6f2b21de6839aaf9252172c63267b2e0571bd /src/mesa/main/extensions.c
parentac74de37109b62ca092827ca263de1935e2d1c08 (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 'src/mesa/main/extensions.c')
0 files changed, 0 insertions, 0 deletions