From 4f295cee73bae1f687efe2dc062522b40d90b1e4 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Fri, 23 Jan 2004 01:59:54 +0000 Subject: Initial support for floating point and signed texture formats. New "FetchTexelFuncF()" function returns texels in floating point format. Only used for depth component images at this time. Changed original FetchTexelFunc to return GLchan instead of GLvoid, removing need for a bunch of ugly casts. --- src/mesa/swrast/s_nvfragprog.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/swrast/s_nvfragprog.c') diff --git a/src/mesa/swrast/s_nvfragprog.c b/src/mesa/swrast/s_nvfragprog.c index 2b358e9f4a..e3679a270e 100644 --- a/src/mesa/swrast/s_nvfragprog.c +++ b/src/mesa/swrast/s_nvfragprog.c @@ -56,6 +56,7 @@ fetch_texel( GLcontext *ctx, const GLfloat texcoord[4], GLfloat lambda, GLchan rgba[4]; SWcontext *swrast = SWRAST_CONTEXT(ctx); + /* XXX use a float-valued TextureSample routine here!!! */ swrast->TextureSample[unit](ctx, unit, ctx->Texture.Unit[unit]._Current, 1, (const GLfloat (*)[4]) texcoord, &lambda, &rgba); -- cgit v1.2.3