Mesa (master): mesa: put more info in glTexImage GL_OUT_OF_MEMORY error message
Brian Paul
brianp at kemper.freedesktop.org
Fri Apr 24 20:47:57 UTC 2015
Module: Mesa
Branch: master
Commit: 13b2e6a520d1f8979fc4da1dd2c6811585b16203
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=13b2e6a520d1f8979fc4da1dd2c6811585b16203
Author: Brian Paul <brianp at vmware.com>
Date: Fri Apr 24 12:56:04 2015 -0600
mesa: put more info in glTexImage GL_OUT_OF_MEMORY error message
Give the user some idea about the size of the texture which caused
the GL_OUT_OF_MEMORY error.
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/mesa/main/teximage.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index d07263c..7bc1da7 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -3320,7 +3320,9 @@ teximage(struct gl_context *ctx, GLboolean compressed, GLuint dims,
if (!sizeOK) {
_mesa_error(ctx, GL_OUT_OF_MEMORY,
- "glTexImage%uD(image too large)", dims);
+ "glTexImage%uD(image too large: %d x %d x %d, %s format)",
+ dims, width, height, depth,
+ _mesa_lookup_enum_by_nr(internalFormat));
return;
}
More information about the mesa-commit
mailing list