From f9172a000e75f335439a7fd48115edd76b14400b Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 18 Jul 2016 20:04:45 +0100 Subject: [PATCH] Fixed bug in setting the ratio value --- examples/osgplanets/osgplanets.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/osgplanets/osgplanets.cpp b/examples/osgplanets/osgplanets.cpp index 016754aff..1cc87bfd3 100644 --- a/examples/osgplanets/osgplanets.cpp +++ b/examples/osgplanets/osgplanets.cpp @@ -120,15 +120,15 @@ osg::Image* createBillboardImage(const osg::Vec4& centerColour, unsigned int siz float mid = (float(size)-1)*0.5f; float div = 2.0f/float(size); - for(unsigned int r=0;rdata(0,r,0); - for(unsigned int c=0;cdata(0,row,0); + for(unsigned int col=0;col