From 97fc2dfa2169e978dd298abc3a7a59770bfcdd32 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Sat, 14 Oct 2006 10:07:21 +0000 Subject: [PATCH] Fixed texture coordinates of cylinder ends. --- src/osg/ShapeDrawable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/ShapeDrawable.cpp b/src/osg/ShapeDrawable.cpp index a59ab7479..414dbd3e6 100644 --- a/src/osg/ShapeDrawable.cpp +++ b/src/osg/ShapeDrawable.cpp @@ -746,7 +746,7 @@ void DrawShapeVisitor::apply(const Cylinder& cylinder) glVertex3f(c*r,s*r,topz); } - glTexCoord2f(1.0f,0.0f); + glTexCoord2f(1.0f,0.5f); glVertex3f(r,0.0f,topz); glEnd(); @@ -774,7 +774,7 @@ void DrawShapeVisitor::apply(const Cylinder& cylinder) glVertex3f(c*r,s*r,basez); } - glTexCoord2f(0.0f,0.0f); + glTexCoord2f(1.0f,0.5f); glVertex3f(r,0.0f,basez); glEnd();