X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fpath.cpp;h=bd6b5b18715eb68d596d084f1d1c3daa37323cd8;hb=d91ab10fd78ef29272282b020fa4e08063cb4808;hp=e4e0b92989172a64780753af467a80e8f90d9cf3;hpb=8dce175e31941c2f6e92ce52204e9b61a071d4f9;p=r2c2.git diff --git a/source/3d/path.cpp b/source/3d/path.cpp index e4e0b92..bd6b5b1 100644 --- a/source/3d/path.cpp +++ b/source/3d/path.cpp @@ -70,9 +70,10 @@ void Path3D::render(const GL::Tag &tag) const if(!mask) return; - GL::PushMatrix push_mat; - track.apply_matrix(); - GL::translate(0, 0, z_offs); + GL::MatrixStack::Push push_mtx(GL::MatrixStack::modelview()); + GL::Matrix matrix = track.get_matrix(); + matrix.translate(0, 0, z_offs); + GL::MatrixStack::modelview() *= matrix; glColor4f(color.r, color.g, color.b, color.a); for(unsigned i=0; mask; ++i, mask>>=1)