From: James Turner Date: Tue, 26 Oct 2010 09:09:55 +0000 (+0100) Subject: Fix build when OSG implict-ref-ptr conversion is disabled. X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=81d640ed7c73e45bf70d541236e67710822cd272;p=simgear.git Fix build when OSG implict-ref-ptr conversion is disabled. --- 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) {