summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-09-28 13:50:34 -0700
committerIan Romanick <[email protected]>2010-10-01 15:49:13 -0700
commitcd5dea640144b45ba2e88c2451f1f01ee08c1c4a (patch)
tree367df8b52dec0cd75e7ab4cd9d2a91f098bd0156 /src/mesa/main
parentcc6f13def53eb280b63427fbdeca197a09315062 (diff)
ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODE
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/texparam.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/main/texparam.c b/src/mesa/main/texparam.c
index 58d785812ea..e96ace73403 100644
--- a/src/mesa/main/texparam.c
+++ b/src/mesa/main/texparam.c
@@ -351,7 +351,8 @@ set_tex_parameteri(GLcontext *ctx,
if (ctx->Extensions.ARB_depth_texture &&
(params[0] == GL_LUMINANCE ||
params[0] == GL_INTENSITY ||
- params[0] == GL_ALPHA)) {
+ params[0] == GL_ALPHA ||
+ (ctx->Extensions.ARB_texture_rg && params[0] == GL_RED))) {
if (texObj->DepthMode != params[0]) {
flush(ctx, texObj);
texObj->DepthMode = params[0];