softpipe: add missing PIPE_TEXTURE_CUBE case in get_lambda_func()
authorBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 17:47:27 +0000 (11:47 -0600)
committerBrian Paul <brianp@vmware.com>
Fri, 21 Aug 2009 17:47:31 +0000 (11:47 -0600)
Fixes progs/demos/cubemap

src/gallium/drivers/softpipe/sp_tex_sample.c

index a2e2a221e4b6e332ec2e2dbf0fda064a137b3750..f3710037082edf16e057fecaffa54f4b8b1b5e54 100644 (file)
@@ -1476,6 +1476,7 @@ static compute_lambda_func get_lambda_func( const union sp_sampler_key key )
    case PIPE_TEXTURE_1D:
       return compute_lambda_1d;
    case PIPE_TEXTURE_2D:
+   case PIPE_TEXTURE_CUBE:
       return compute_lambda_2d;
    case PIPE_TEXTURE_3D:
       return compute_lambda_3d;