From 59d965333c05534475b60042571366656b97ab9d Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Thu, 26 Jul 2012 18:43:26 -0700 Subject: [PATCH] mesa: Generate an error when glCopyTexImage border is invalid NOTE: This is a candidate for stable release branches. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Jordan Justen --- src/mesa/main/teximage.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index 8efa179724a..879a24e88aa 100644 --- a/src/mesa/main/teximage.c +++ b/src/mesa/main/teximage.c @@ -2009,6 +2009,8 @@ copytexture_error_check( struct gl_context *ctx, GLuint dimensions, if (border < 0 || border > 1 || ((target == GL_TEXTURE_RECTANGLE_NV || target == GL_PROXY_TEXTURE_RECTANGLE_NV) && border != 0)) { + _mesa_error(ctx, GL_INVALID_VALUE, + "glCopyTexImage%dD(border=%d)", dimensions, border); return GL_TRUE; } -- 2.30.2