aboutsummaryrefslogtreecommitdiff
path: root/mesalib/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2015-04-30 23:26:47 +0200
committermarha <marha@users.sourceforge.net>2015-04-30 23:29:47 +0200
commit055e5645a789d2822d3c4e5a3bc81ff6a969ff31 (patch)
tree8a923f19c3586f9341114be6c81784ab9018aef8 /mesalib/src/mesa/main/teximage.c
parent0f7871ff824bcf064db3ab6bdfe26645ba6c8087 (diff)
parenta71d524ecad48837e0124a03124bc05f59a48be7 (diff)
downloadvcxsrv-055e5645a789d2822d3c4e5a3bc81ff6a969ff31.tar.gz
vcxsrv-055e5645a789d2822d3c4e5a3bc81ff6a969ff31.tar.bz2
vcxsrv-055e5645a789d2822d3c4e5a3bc81ff6a969ff31.zip
Merge remote-tracking branch 'origin/released'
Diffstat (limited to 'mesalib/src/mesa/main/teximage.c')
-rw-r--r--mesalib/src/mesa/main/teximage.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/mesalib/src/mesa/main/teximage.c b/mesalib/src/mesa/main/teximage.c
index 8d9d7cfc1..7bc1da7f8 100644
--- a/mesalib/src/mesa/main/teximage.c
+++ b/mesalib/src/mesa/main/teximage.c
@@ -1997,7 +1997,8 @@ _mesa_legal_texture_base_format_for_target(struct gl_context *ctx,
const char *caller)
{
if (_mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_COMPONENT
- || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL) {
+ || _mesa_base_tex_format(ctx, internalFormat) == GL_DEPTH_STENCIL
+ || _mesa_base_tex_format(ctx, internalFormat) == GL_STENCIL_INDEX) {
/* Section 3.8.3 (Texture Image Specification) of the OpenGL 3.3 Core
* Profile spec says:
*
@@ -3319,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;
}