From c0863e96caf843cb22eb03bf3d49bc3d005ac066 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 10 Mar 2009 16:52:18 +0000 Subject: [PATCH] Made bool isImageTranslucent() const virtual to allow subclasses to provide their own implementation --- include/osg/Image | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/osg/Image b/include/osg/Image index a96ef028f..0253aef59 100644 --- a/include/osg/Image +++ b/include/osg/Image @@ -307,7 +307,7 @@ class OSG_EXPORT Image : public Object }*/ /** Return true if this image is translucent - i.e. it has alpha values that are less 1.0 (when normalized). */ - bool isImageTranslucent() const; + virtual bool isImageTranslucent() const; /** Set the optional PixelBufferObject used to map the image memory efficiently to graphics memory. */ void setPixelBufferObject(PixelBufferObject* buffer) { _bufferObject = buffer; if (_bufferObject.valid()) _bufferObject->setImage(this); }