Procházet zdrojové kódy

glsl: Fix constant component count in vector constructor emitting.

Fixes freedesktop.org bug #31101 as well as piglit test cases
assignment-type-mismatch.vert and constructor-28.vert.
tags/snb-magic
Kenneth Graunke před 15 roky
rodič
revize
ba2382f50d
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/glsl/ast_function.cpp

+ 1
- 1
src/glsl/ast_function.cpp Zobrazit soubor

@@ -545,7 +545,7 @@ emit_inline_vector_constructor(const glsl_type *type,
/* Mask of fields to be written in the assignment.
*/
constant_mask |= ((1U << rhs_components) - 1) << base_lhs_component;
constant_components++;
constant_components += rhs_components;

base_component += rhs_components;
}

Načítá se…
Zrušit
Uložit