From 19c18634321e5b1eddcd3424d2f018f9785caeac Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 17 Nov 2005 09:20:58 +0000 Subject: [PATCH] Added (_data || rhs._data) extra qualify to Image::compare is data equal test. --- src/osg/Image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/osg/Image.cpp b/src/osg/Image.cpp index 29b0ac84b..6bca764bf 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -102,7 +102,7 @@ int Image::compare(const Image& rhs) const COMPARE_StateAttribute_Parameter(_modifiedCount) // same buffer + same parameters = same image - if (_data == rhs._data) return 0; + if ((_data || rhs._data) && (_data == rhs._data)) return 0; // slowest comparison at the bottom! COMPARE_StateAttribute_Parameter(getFileName())