Converted the instance of osgNew and osgDelete back to new and delete as part
of depecating the include/osg/MemoryManager
This commit is contained in:
@@ -9,7 +9,7 @@ CubeMapGenerator::CubeMapGenerator(int texture_size)
|
||||
{
|
||||
for (int i=0; i<6; ++i)
|
||||
{
|
||||
osg::ref_ptr<osg::Image> image = osgNew osg::Image;
|
||||
osg::ref_ptr<osg::Image> image = new osg::Image;
|
||||
unsigned char* data = (static_cast<unsigned char *>(malloc(texture_size*texture_size*4)));
|
||||
image->setImage(texture_size, texture_size, 1, 4, GL_RGBA, GL_UNSIGNED_BYTE, data);
|
||||
images_.push_back(image);
|
||||
|
||||
Reference in New Issue
Block a user