Browse Source

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

forget to zero the 3rd coordinate.
legacy
Sam Hocevar sam 13 years ago
parent
commit
28bda9a25b
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/matrix.h

+ 2
- 0
src/matrix.h View File

@@ -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…
Cancel
Save