Fixed check against dataType changes

This commit is contained in:
Robert Osfield 2018-07-27 17:34:30 +01:00
parent a7747972dc
commit 79bc4c3843

View File

@ -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)
{