X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmaterials%2Fprogramdata.h;h=bc98847b26417f84dd18f1f3e17970276750f3e3;hp=dbbf5f488d6173e2b9436df925d81bdce2db8f16;hb=8d211effd0c6db66e57f9ffd8ee712eef6069a1c;hpb=ac73cd6d7701d58502cf0e6c82411913f4abfe5d diff --git a/source/materials/programdata.h b/source/materials/programdata.h index dbbf5f48..bc98847b 100644 --- a/source/materials/programdata.h +++ b/source/materials/programdata.h @@ -267,7 +267,7 @@ public: template void ProgramData::uniform(Tag tag, const LinAl::Vector &v) -{ uniform(tag, TypeTraits>::type, 1, &v.x); } +{ uniform(tag, TypeTraits>::type, 1, &v[0]); } template void ProgramData::uniform(Tag tag, const LinAl::Matrix &v) @@ -275,7 +275,7 @@ void ProgramData::uniform(Tag tag, const LinAl::Matrix &v) template void ProgramData::uniform_array(Tag tag, unsigned n, const LinAl::Vector *v) -{ uniform(tag, TypeTraits>::type, n, &v[0].x); } +{ uniform(tag, TypeTraits>::type, n, &v[0][0]); } template void ProgramData::uniform_array(Tag tag, unsigned n, const LinAl::Matrix *v)