Преглед изворни кода

core: fix a bug in vector casts; vec2 -> vec3 promotion for instance would

forget to zero the 3rd coordinate.
legacy
Sam Hocevar sam пре 13 година
родитељ
комит
28bda9a25b
1 измењених фајлова са 2 додато и 0 уклоњено
  1. +2
    -0
      src/matrix.h

+ 2
- 0
src/matrix.h Прегледај датотеку

@@ -66,6 +66,8 @@ namespace lol
Vec##dest<T> ret; \
for (int n = 0; n < elems && n < dest; n++) \
ret[n] = (*this)[n]; \
for (int n = elems; n < dest; n++) \
ret[n] = 0; \
return ret; \
}



Loading…
Откажи
Сачувај