diff options
author | Brian Paul <[email protected]> | 2015-04-24 12:56:04 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2015-04-24 14:48:54 -0600 |
commit | 13b2e6a520d1f8979fc4da1dd2c6811585b16203 (patch) | |
tree | 975e8383ab5e9fd7205d965c521dce65271f2232 /src/mesa/main/teximage.c | |
parent | 0087cf23e8e399778e93369d67dd543e767ab526 (diff) |
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 <[email protected]>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r-- | src/mesa/main/teximage.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c index d07263c59b1..7bc1da7f805 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; } |