texture_builtins.py: Generalize the "use_proj" field to support offsets.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 27 Dec 2010 10:53:43 +0000 (02:53 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 31 Jan 2011 19:10:59 +0000 (11:10 -0800)
commit4c63f2de2fdac3cedef65eb29f57e6e2b26a0d59
tree57ef0cb19ee47a4776ee4fc7d90a0b2a859eae85
parent99f36486ebf3d5a6edfd6329e882d6409a085582
texture_builtins.py: Generalize the "use_proj" field to support offsets.

Rather than passing "True", pass a bitfield describing the particular
variant's features - either projection or offset.

This should make the code a bit more readable ("Proj" instead of "True")
and make it easier to support offsets in the future.
src/glsl/builtins/tools/texture_builtins.py