mesa/formatquery: Added function to validate parameters
authorAntia Puentes <apuentes@igalia.com>
Wed, 16 Dec 2015 19:31:15 +0000 (20:31 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:05 +0000 (15:14 +0100)
commita6434f41cc580f75909afbfcd6fa71e23706f96f
tree7c1fe60ba7245fb214deff5c1bf13b5f306433d6
parentb89463cdfda8ff432e466d34524f54e1f5c595a7
mesa/formatquery: Added function to validate parameters

Handles the cases where an error should be returned according
to the ARB_internalformat_query and ARB_internalformat_query2
specifications.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/formatquery.c