Add a new internal program parameter value STATE_TEXRECT_SCALE which
authorKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 14:30:22 +0000 (14:30 +0000)
committerKeith Whitwell <keith@tungstengraphics.com>
Wed, 20 Sep 2006 14:30:22 +0000 (14:30 +0000)
commit187f2cfb4ace79fabc994f4ce2753db5b11528eb
tree069cb2e2f9bc6e0ef5111949513f596e5b335dc1
parent0c9259f3b95615ceda134bd7074d871cd0186c89
Add a new internal program parameter value STATE_TEXRECT_SCALE which
provides 1/width and 1/height of the active texture, useful for
implementing ARB_texture_rectangle support on hardware which only
supports ARB_npot-style texturing.
src/mesa/shader/program.c
src/mesa/shader/program.h