summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2017-07-20 07:56:03 -0600
committerBrian Paul <[email protected]>2017-07-22 13:18:56 -0600
commit922dc27273f118f6773786760da241b5b9d4e9e4 (patch)
tree21af8d899a74ada7457722eeb51e244b30e1aa5c
parent665fd10396aa1dba395a8fe4d7a35dfed90fe27e (diff)
mesa: include texture size in error messages
Reviewed-by: Alejandro PiƱeiro <[email protected]> Reviewed-by: Samuel Pitoiset <[email protected]>
-rw-r--r--src/mesa/main/teximage.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 2132aaee76b..6b31b6a0cdd 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -3007,8 +3007,8 @@ teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims,
if (!dimensionsOK) {
_mesa_error(ctx, GL_INVALID_VALUE,
- "%s%uD(invalid width or height or depth)",
- func, dims);
+ "%s%uD(invalid width=%d or height=%d or depth=%d)",
+ func, dims, width, height, depth);
return;
}
@@ -3833,7 +3833,8 @@ copyteximage(struct gl_context *ctx, GLuint dims,
if (!_mesa_legal_texture_dimensions(ctx, target, level, width, height,
1, border)) {
_mesa_error(ctx, GL_INVALID_VALUE,
- "glCopyTexImage%uD(invalid width or height)", dims);
+ "glCopyTexImage%uD(invalid width=%d or height=%d)",
+ dims, width, height);
return;
}
}
@@ -5743,7 +5744,7 @@ texture_image_multisample(struct gl_context *ctx, GLuint dims,
else {
if (!dimensionsOK) {
_mesa_error(ctx, GL_INVALID_VALUE,
- "%s(invalid width or height)", func);
+ "%s(invalid width=%d or height=%d)", func, width, height);
return;
}