REVIEW: Memory Leak - ODGauge
1,176 bytes in 3 blocks are indirectly lost
This commit is contained in:
@@ -259,6 +259,7 @@ namespace canvas
|
|||||||
// and dynamic mipmap generation doesn't work.
|
// and dynamic mipmap generation doesn't work.
|
||||||
osg::Image* image = new osg::Image;
|
osg::Image* image = new osg::Image;
|
||||||
image->allocateImage(_size_x, _size_y, 1, GL_RGBA, GL_UNSIGNED_BYTE);
|
image->allocateImage(_size_x, _size_y, 1, GL_RGBA, GL_UNSIGNED_BYTE);
|
||||||
|
// REVIEW: Memory Leak - 1,176 bytes in 3 blocks are indirectly lost
|
||||||
texture = new osg::Texture2D;
|
texture = new osg::Texture2D;
|
||||||
texture->setResizeNonPowerOfTwoHint(false);
|
texture->setResizeNonPowerOfTwoHint(false);
|
||||||
texture->setImage(image);
|
texture->setImage(image);
|
||||||
@@ -339,6 +340,7 @@ namespace canvas
|
|||||||
|
|
||||||
if( _flags & USE_STENCIL )
|
if( _flags & USE_STENCIL )
|
||||||
{
|
{
|
||||||
|
// REVIEW: Memory Leak - 264 bytes in 3 blocks are indirectly lost
|
||||||
camera->attach( osg::Camera::PACKED_DEPTH_STENCIL_BUFFER,
|
camera->attach( osg::Camera::PACKED_DEPTH_STENCIL_BUFFER,
|
||||||
GL_DEPTH_STENCIL_EXT );
|
GL_DEPTH_STENCIL_EXT );
|
||||||
mask |= GL_STENCIL_BUFFER_BIT;
|
mask |= GL_STENCIL_BUFFER_BIT;
|
||||||
|
|||||||
Reference in New Issue
Block a user