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@gmail.com>
This commit is contained in:
Brian Paul 2015-04-24 12:56:04 -06:00
parent 0087cf23e8
commit 13b2e6a520
1 changed files with 3 additions and 1 deletions

View File

@ -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;
}