Procházet zdrojové kódy

glsl: fix a swizzle-related regression

This new issue was exposed by commit 6eabfc27f1
undefined
Brian Paul před 16 roky
rodič
revize
212f41b80f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      src/mesa/shader/slang/slang_emit.c

+ 1
- 1
src/mesa/shader/slang/slang_emit.c Zobrazit soubor

@@ -164,7 +164,7 @@ _slang_var_swizzle(GLint size, GLint comp)
{
switch (size) {
case 1:
return MAKE_SWIZZLE4(comp, comp, comp, comp);
return MAKE_SWIZZLE4(comp, SWIZZLE_NIL, SWIZZLE_NIL, SWIZZLE_NIL);
case 2:
return MAKE_SWIZZLE4(SWIZZLE_X, SWIZZLE_Y, SWIZZLE_NIL, SWIZZLE_NIL);
case 3:

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