mesa: fix ES only draw if we have vertex positions
authorTimothy Arceri <tarceri@itsqueeze.com>
Mon, 21 Aug 2017 00:42:21 +0000 (10:42 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Tue, 22 Aug 2017 00:42:18 +0000 (10:42 +1000)
commita4635c84dcd119376a8daaa91ec906c8b9de17af
tree534520402bbf3f9beefc0c3a5083ad828f49d663
parent91b8d874daa82c6c74f01bbc602a56f44569e38a
mesa: fix ES only draw if we have vertex positions

This code was separated from the validation code so it could
use used with KHR_no_error paths. The return values were inverted
to reflect the name of the helper, but here the condtion was
mistakenly inverted rather than the return value.

Fixes: 4df2931a87fe (mesa/vbo: move some Draw checks out of validation)
Reported-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/vbo/vbo_exec_array.c