Ignore:
Timestamp:
Aug 11, 2011, 2:35:20 PM (8 years ago)
Author:
sam
Message:

core: fix a bug in vector casts; vec2 -> vec3 promotion for instance would
forget to zero the 3rd coordinate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/matrix.h

    r768 r815  
    6767        for (int n = 0; n < elems && n < dest; n++) \
    6868            ret[n] = (*this)[n]; \
     69        for (int n = elems; n < dest; n++) \
     70            ret[n] = 0; \
    6971        return ret; \
    7072    }
Note: See TracChangeset for help on using the changeset viewer.