dmuratshin 9 years ago
parent
commit
a832f39b17
1 changed files with 3 additions and 5 deletions
  1. 3 5
      oxygine/src/res/ResStarlingAtlas.cpp

+ 3 - 5
oxygine/src/res/ResStarlingAtlas.cpp

@@ -70,15 +70,13 @@ namespace oxygine
             }
             else
             {
-                spImage mt = new Image;
+                RefHolder<Image> mt;
 
-                ImageData im;
                 file::buffer bf;
                 file::read(_imagePath, bf);
 
-                mt->init(bf, true, _texture->getFormat());
-                im = mt->lock();
-                _texture->init(mt->lock(), false);
+                mt.init(bf, true, _texture->getFormat());
+                _texture->init(mt.lock(), false);
             }
         }