Browse Source

gallium: compare the actual register, not all the inputs

otherwise we decrement indexes for all registers
tags/intel_2009q2_rc3
Zack Rusin 16 years ago
parent
commit
1c1307e7c5
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/mesa/state_tracker/st_atom_shader.c

+ 1
- 1
src/mesa/state_tracker/st_atom_shader.c View File

@@ -139,7 +139,7 @@ find_translated_vp(struct st_context *st,
if (fragInputsRead & (1 << inAttr)) {
stfp->input_to_slot[inAttr] = numIn;
numIn++;
if ((fragInputsRead & FRAG_BIT_FOGC)) {
if (((1 << inAttr) & FRAG_BIT_FOGC)) {
/* leave placeholders for the
* extra registers we extract from fog */
if (stfp->Base.UsesFrontFacing) {

Loading…
Cancel
Save