diff --git a/src/osg/Texture.cpp b/src/osg/Texture.cpp index a452a6d0d..dd7ffdc89 100644 --- a/src/osg/Texture.cpp +++ b/src/osg/Texture.cpp @@ -1078,7 +1078,7 @@ Texture::Texture(): _useHardwareMipMapGeneration(true), _unrefImageDataAfterApply(false), _clientStorageHint(false), - _resizeNonPowerOfTwoHint(!OSG_GLES2_FEATURES && !OSG_GL3_FEATURES), + _resizeNonPowerOfTwoHint(true), _borderColor(0.0, 0.0, 0.0, 0.0), _borderWidth(0), _internalFormatMode(USE_IMAGE_DATA_FORMAT), diff --git a/src/osgWrappers/serializers/osg/Texture.cpp b/src/osgWrappers/serializers/osg/Texture.cpp index 34ba0ff15..237093132 100644 --- a/src/osgWrappers/serializers/osg/Texture.cpp +++ b/src/osgWrappers/serializers/osg/Texture.cpp @@ -84,7 +84,7 @@ REGISTER_OBJECT_WRAPPER( Texture, ADD_BOOL_SERIALIZER( UseHardwareMipMapGeneration, true ); // _useHardwareMipMapGeneration ADD_BOOL_SERIALIZER( UnRefImageDataAfterApply, false ); // _unrefImageDataAfterApply ADD_BOOL_SERIALIZER( ClientStorageHint, false ); // _clientStorageHint - ADD_BOOL_SERIALIZER( ResizeNonPowerOfTwoHint, false ); // _resizeNonPowerOfTwoHint + ADD_BOOL_SERIALIZER( ResizeNonPowerOfTwoHint, true ); // _resizeNonPowerOfTwoHint ADD_VEC4D_SERIALIZER( BorderColor, osg::Vec4d(0.0,0.0,0.0,0.0) ); // _borderColor ADD_GLINT_SERIALIZER( BorderWidth, 0 ); // _borderWidth