diff --git a/components/resource/meshmanager.cpp b/components/resource/meshmanager.cpp index ae37a32..1cc5c53 100644 --- a/components/resource/meshmanager.cpp +++ b/components/resource/meshmanager.cpp @@ -181,11 +181,11 @@ osg::ref_ptr MeshManager::loadFlat(size_t texid, size_t *num_frames, base->setAxis(osg::Vec3(0.0f, 1.0f, 0.0f)); base->setNormal(osg::Vec3(0.0f, 0.0f, -1.0f)); - osg::ref_ptr vtxs(new osg::Vec2Array(4)); - (*vtxs)[0] = osg::Vec2(width* 0.5f, height*-0.5f); - (*vtxs)[1] = osg::Vec2(width*-0.5f, height*-0.5f); - (*vtxs)[2] = osg::Vec2(width*-0.5f, height* 0.5f); - (*vtxs)[3] = osg::Vec2(width* 0.5f, height* 0.5f); + osg::ref_ptr vtxs(new osg::Vec3Array(4)); + (*vtxs)[0] = osg::Vec3(width* 0.5f, height*-0.5f, 0.0f); + (*vtxs)[1] = osg::Vec3(width*-0.5f, height*-0.5f, 0.0f); + (*vtxs)[2] = osg::Vec3(width*-0.5f, height* 0.5f, 0.0f); + (*vtxs)[3] = osg::Vec3(width* 0.5f, height* 0.5f, 0.0f); osg::ref_ptr texcrds(new osg::Vec2Array(4)); (*texcrds)[0] = osg::Vec2(1.0f, 0.0f); (*texcrds)[1] = osg::Vec2(0.0f, 0.0f);