From cd5dea640144b45ba2e88c2451f1f01ee08c1c4a Mon Sep 17 00:00:00 2001 From: Ian Romanick Date: Tue, 28 Sep 2010 13:50:34 -0700 Subject: ARB_texture_rg: Add GL_RED as a valid GL_DEPTH_TEXTURE_MODE --- src/mesa/swrast/s_texfilter.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/mesa/swrast') diff --git a/src/mesa/swrast/s_texfilter.c b/src/mesa/swrast/s_texfilter.c index 1aa2bcaf74..de694c31bf 100644 --- a/src/mesa/swrast/s_texfilter.c +++ b/src/mesa/swrast/s_texfilter.c @@ -3051,6 +3051,9 @@ sample_depth_texture( GLcontext *ctx, case GL_ALPHA: ASSIGN_4V(texel[i], 0.0F, 0.0F, 0.0F, result); break; + case GL_RED: + ASSIGN_4V(texel[i], result, 0.0F, 0.0F, 1.0F); + break; default: _mesa_problem(ctx, "Bad depth texture mode"); } -- cgit v1.2.3