[Mesa-dev] [PATCH 1/2] mesa: allow GL_STENCIL_INDEX8 in glTexImageMultisample
Marek Olšák
maraeo at gmail.com
Mon Aug 24 16:59:08 PDT 2015
From: Marek Olšák <marek.olsak at amd.com>
Cc: 10.6 11.0 <mesa-stable at lists.freedesktop.org>
---
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 253e881..fa37a61 100644
--- a/src/mesa/main/teximage.c
+++ b/src/mesa/main/teximage.c
@@ -5572,7 +5572,9 @@ is_renderable_texture_format(struct gl_context *ctx, GLenum internalformat)
* except for a base format of GL_STENCIL_INDEX.
*/
GLenum baseFormat = _mesa_base_fbo_format(ctx, internalformat);
- return baseFormat != 0 && baseFormat != GL_STENCIL_INDEX;
+ return baseFormat != 0 &&
+ (ctx->Extensions.ARB_texture_stencil8 ||
+ baseFormat != GL_STENCIL_INDEX);
}
--
2.1.4
More information about the mesa-dev
mailing list