From 79bc4c3843f7a6b4f4671c19aaad196e4b47a8ad Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 27 Jul 2018 17:34:30 +0100 Subject: [PATCH] Fixed check against dataType changes --- 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 2653c55cf..becc4bb30 100644 --- a/src/osg/Image.cpp +++ b/src/osg/Image.cpp @@ -1518,7 +1518,7 @@ void Image::swap(osg::Image& rhs) void Image::scaleImage(int s,int t,int r, GLenum newDataType) { - if (_s==s && _t==t && _r==r) return; + if (_s==s && _t==t && _r==r && _dataType==_dataType) return; if (_data==NULL) {