OSDN Git Service

mesa: Raise INVALID_VALUE from glCreateShaderProgramv if count < 0
authorMarta Lofstedt <marta.lofstedt@intel.com>
Thu, 13 Aug 2015 12:38:14 +0000 (14:38 +0200)
committerTapani Pälli <tapani.palli@intel.com>
Mon, 17 Aug 2015 07:29:07 +0000 (10:29 +0300)
commit19a5a91ea49bd411f4d438d416000d49ecc2de7e
tree5354fc1c86ae3bc86eaf7ecc9dc400c61182eb35
parentdd9d2963d66d24394b20823fcffb809cc8d5389d
mesa: Raise INVALID_VALUE from glCreateShaderProgramv if count < 0

According to OpenGL version 4.5 and OpenGL ES 3.1 standards, section 7.3:
GL_INVALID_VALUE should be generated, if count is less than 0.

V2: Changed title, eased Open GL ES 3.1 restriction and added comments.

Signed-off-by: Marta Lofstedt <marta.lofstedt@intel.com>
Reviewed-by: Timothy Arceri <t_arceri@yahoo.com.au>
src/mesa/main/shaderapi.c