mesa: Adds check for integer internal format and num samples in glRenderbufferStorage...
authorEduardo Lima Mitev <elima@igalia.com>
Mon, 15 Dec 2014 10:30:21 +0000 (11:30 +0100)
committerSamuel Iglesias Gonsalvez <siglesias@igalia.com>
Thu, 19 Feb 2015 08:35:41 +0000 (09:35 +0100)
commit19252fee46b835cb4f6b1cce18d7737d62b64a2e
tree2ca3cfb7015e64f30b1b646b5182d0d7621f16f4
parentdbc160a3f8a6be26110656a15c0d6048391f4fc7
mesa: Adds check for integer internal format and num samples in glRenderbufferStorageMultisample

Per GLES3 specification, section 4.4 Framebuffer objects page 198, "If
internalformat is a signed or unsigned integer format and samples is greater
than zero, then the error INVALID_OPERATION is generated.".

Fixes 1 dEQP test:
* dEQP-GLES3.functional.negative_api.buffer.renderbuffer_storage_multisample

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/main/multisample.c