Fixed check against dataType changes
This commit is contained in:
parent
a7747972dc
commit
79bc4c3843
@ -1518,7 +1518,7 @@ void Image::swap(osg::Image& rhs)
|
|||||||
|
|
||||||
void Image::scaleImage(int s,int t,int r, GLenum newDataType)
|
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)
|
if (_data==NULL)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user