Browse Source

glsl: Use sampler_coordinate_components instead of passing it by hand.

We used to pass the number of components actually used for the
coordinate (rather than padding, shadow comparitors, and projectors) by
hand, specifying it on every _texture() call.

The new helper function can just compute this, eliminating a lot of
potential mistakes.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
tags/mesa-10.1-devel
Kenneth Graunke 12 years ago
parent
commit
c59659ca08
1 changed files with 450 additions and 450 deletions
  1. 450
    450
      src/glsl/builtin_functions.cpp

+ 450
- 450
src/glsl/builtin_functions.cpp
File diff suppressed because it is too large
View File


Loading…
Cancel
Save