diff options
author | Kenneth Graunke <kenneth@whitecape.org> | 2010-09-01 16:10:01 -0700 |
---|---|---|
committer | Kenneth Graunke <kenneth@whitecape.org> | 2010-09-01 18:57:51 -0700 |
commit | 39605587951aed546c14febcc26e5a479bf8d807 (patch) | |
tree | da80c5384cf40a1de03f46152628e36dd5f340bb /src/gallium | |
parent | 54b35e673596d767a13f06f4d7ec1089e18fd46e (diff) |
glsl: Fix write mask in matrix-from-matrix constructors.
If the matrix being constructed was larger than the source matrix, it
would overwrite the lower-right part of the matrix with the wrong
values, rather than leaving it as the identity matrix.
For example, constructing a mat4 from a mat2 should only use a writemask
of "xy" when copying from the source, but was using "xyzw".
Fixes the code generated by piglit test constructor-23.vert.
Diffstat (limited to 'src/gallium')
0 files changed, 0 insertions, 0 deletions