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.
This commit is contained in:
Keith Whitwell
2006-09-20 14:30:22 +00:00
parent 0c9259f3b9
commit 187f2cfb4a
2 changed files with 12 additions and 0 deletions

View File

@@ -188,6 +188,7 @@ enum state_index {
STATE_INTERNAL, /* Mesa additions */
STATE_NORMAL_SCALE,
STATE_TEXRECT_SCALE,
STATE_POSITION_NORMALIZED /* normalized light position */
};