summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.c
diff options
context:
space:
mode:
authorIlia Mirkin <imirkin@alum.mit.edu>2016-02-15 23:57:06 -0500
committerIlia Mirkin <imirkin@alum.mit.edu>2016-02-19 12:37:22 -0500
commita03d6f2aa3bb589ca61c3cc13c4189a973b3a2c1 (patch)
tree17e8263a4ea3767013e4cf2a02713de49dfc255f /src/mesa/main/teximage.c
parent2b938a390c15a06be8cf706083890c822979508f (diff)
downloadexternal_mesa3d-a03d6f2aa3bb589ca61c3cc13c4189a973b3a2c1.zip
external_mesa3d-a03d6f2aa3bb589ca61c3cc13c4189a973b3a2c1.tar.gz
external_mesa3d-a03d6f2aa3bb589ca61c3cc13c4189a973b3a2c1.tar.bz2
mesa: add GL_OES_texture_stencil8 support
It's basically the same thing as GL_ARB_texture_stencil8 except that glCopyTexImage isn't supported, so add STENCIL_INDEX to the list of invalid GLES formats for glCopyTexImage. Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu> Reviewed-by: Eduardo Lima Mitev <elima@igalia.com>
Diffstat (limited to 'src/mesa/main/teximage.c')
-rw-r--r--src/mesa/main/teximage.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.c b/src/mesa/main/teximage.c
index 57765d7..8a4c628 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -2285,8 +2285,10 @@ copytexture_error_check( struct gl_context *ctx, GLuint dimensions,
}
if (baseFormat == GL_DEPTH_COMPONENT ||
baseFormat == GL_DEPTH_STENCIL ||
+ baseFormat == GL_STENCIL_INDEX ||
rb_base_format == GL_DEPTH_COMPONENT ||
rb_base_format == GL_DEPTH_STENCIL ||
+ rb_base_format == GL_STENCIL_INDEX ||
((baseFormat == GL_LUMINANCE_ALPHA ||
baseFormat == GL_ALPHA) &&
rb_base_format != GL_RGBA) ||