diff options
author | Timothy Arceri <[email protected]> | 2015-08-13 18:44:51 +1000 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2015-08-18 07:07:57 +1000 |
commit | 46684d3ae3a4084b00355df3feeeb25159656a8e (patch) | |
tree | b75fe0472aecbdd6ce0935f73db52999716e19ab /src/mesa/main/multisample.c | |
parent | d3ace603a97bdd031bdff7517728eff4d0fd6458 (diff) |
mesa: move non-generic samples validation
The previous patch replaces the other use case.
V2: remove the validation from it old location.
Cc: Tapani Pälli <[email protected]>
Reviewed-by: Anuj Phogat <[email protected]>
Diffstat (limited to 'src/mesa/main/multisample.c')
-rw-r--r-- | src/mesa/main/multisample.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mesa/main/multisample.c b/src/mesa/main/multisample.c index 09e6154f7ec..e7783ea5374 100644 --- a/src/mesa/main/multisample.c +++ b/src/mesa/main/multisample.c @@ -150,15 +150,6 @@ GLenum _mesa_check_sample_count(struct gl_context *ctx, GLenum target, GLenum internalFormat, GLsizei samples) { - /* Section 2.5 (GL Errors) of OpenGL 3.0 specification, page 16: - * - * "If a negative number is provided where an argument of type sizei or - * sizeiptr is specified, the error INVALID VALUE is generated." - */ - if (samples < 0) { - return GL_INVALID_VALUE; - } - /* Section 4.4 (Framebuffer objects), page 198 of the OpenGL ES 3.0.0 * specification says: * |