From 187f2cfb4ace79fabc994f4ce2753db5b11528eb Mon Sep 17 00:00:00 2001 From: Keith Whitwell Date: Wed, 20 Sep 2006 14:30:22 +0000 Subject: 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.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/shader/program.h') diff --git a/src/mesa/shader/program.h b/src/mesa/shader/program.h index 5b73965dca..cf3b1cc099 100644 --- a/src/mesa/shader/program.h +++ b/src/mesa/shader/program.h @@ -188,6 +188,7 @@ enum state_index { STATE_INTERNAL, /* Mesa additions */ STATE_NORMAL_SCALE, + STATE_TEXRECT_SCALE, STATE_POSITION_NORMALIZED /* normalized light position */ }; -- cgit v1.2.3