From a9fff529c7fd1c702f2921cac22c26f40bd1d3e9 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 25 Jan 2013 10:36:42 +0000 Subject: [PATCH] Fixed compile warning --- examples/osghangglide/trees.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/osghangglide/trees.cpp b/examples/osghangglide/trees.cpp index 2598504bd..4ce0a8a9b 100644 --- a/examples/osghangglide/trees.cpp +++ b/examples/osghangglide/trees.cpp @@ -166,10 +166,10 @@ static Geometry *makeTree( _tree *tree, StateSet *dstate ) { float vv[][3] = { - { -tree->w/2.0, 0.0, 0.0 }, - { tree->w/2.0, 0.0, 0.0 }, - { tree->w/2.0, 0.0, 2 * tree->h }, - { -tree->w/2.0, 0.0, 2 * tree->h }, + { -tree->w/2.0f, 0.0f, 0.0f }, + { tree->w/2.0f, 0.0f, 0.0f }, + { tree->w/2.0f, 0.0f, 2.0f * tree->h }, + { -tree->w/2.0f, 0.0f, 2.0f * tree->h }, }; Vec3Array& v = *(new Vec3Array(4));