From 81d640ed7c73e45bf70d541236e67710822cd272 Mon Sep 17 00:00:00 2001 From: James Turner Date: Tue, 26 Oct 2010 10:09:55 +0100 Subject: [PATCH] Fix build when OSG implict-ref-ptr conversion is disabled. --- simgear/scene/material/TextureBuilder.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/simgear/scene/material/TextureBuilder.cxx b/simgear/scene/material/TextureBuilder.cxx index a694ea66..0e487a99 100644 --- a/simgear/scene/material/TextureBuilder.cxx +++ b/simgear/scene/material/TextureBuilder.cxx @@ -236,8 +236,8 @@ void setAttrs(const TexTuple& attrs, Texture* tex, = osgDB::Registry::instance()->readImage(imageName, options); if (result.success()) { osg::ref_ptr image = result.getImage(); - image = computeMipmap( image, attrs.get<7>() ); - tex->setImage(GL_FRONT_AND_BACK, image); + image = computeMipmap( image.get(), attrs.get<7>() ); + tex->setImage(GL_FRONT_AND_BACK, image.get()); int s = image->s(); int t = image->t(); if (s <= t && 32 <= s) { -- 2.39.5