summaryrefslogtreecommitdiffstats
path: root/src/glsl
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2010-07-07 16:28:39 -0700
committerIan Romanick <[email protected]>2010-07-07 16:28:39 -0700
commit35c89204e597e6d4d3e8b8c665ce1c51d6dde4d7 (patch)
tree782354c7b99b3e4a76291db354b5e6f7b5c70ab4 /src/glsl
parent0b74bbb3dcf07489e1dbd1976f07093ad7821e51 (diff)
linker: Use bit-0 instead of VERT_BIT_GENERIC0
Uses of the bits for allocation are offset by 16, and VERT_BIT_GENERIC0 already has the 16 offset. As a result, it was preventing the wrong thing from being allocated.
Diffstat (limited to 'src/glsl')
-rw-r--r--src/glsl/linker.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/glsl/linker.cpp b/src/glsl/linker.cpp
index 5227d42e353..eb10f90a911 100644
--- a/src/glsl/linker.cpp
+++ b/src/glsl/linker.cpp
@@ -667,7 +667,7 @@ assign_attribute_locations(gl_shader_program *prog, unsigned max_attribute_index
* be explicitly assigned by via glBindAttribLocation. Mark it as reserved
* to prevent it from being automatically allocated below.
*/
- used_locations |= VERT_BIT_GENERIC0;
+ used_locations |= (1 << 0);
for (unsigned i = 0; i < num_attr; i++) {
/* Mask representing the contiguous slots that will be used by this