diff options
Diffstat (limited to 'util/fbcompose/OpenGLTexPartitioner.cc')
-rw-r--r-- | util/fbcompose/OpenGLTexPartitioner.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util/fbcompose/OpenGLTexPartitioner.cc b/util/fbcompose/OpenGLTexPartitioner.cc index 9ff810b..6d01c9d 100644 --- a/util/fbcompose/OpenGLTexPartitioner.cc +++ b/util/fbcompose/OpenGLTexPartitioner.cc | |||
@@ -73,7 +73,7 @@ void OpenGL2DTexturePartition::setPixmap(Pixmap pixmap, bool manage_pixmap, int | |||
73 | while ((size_t)(total_units) > m_partitions.size()) { | 73 | while ((size_t)(total_units) > m_partitions.size()) { |
74 | TexturePart partition; | 74 | TexturePart partition; |
75 | partition.borders = 0; | 75 | partition.borders = 0; |
76 | partition.texture = new OpenGL2DTexture(m_screen, m_swizzle_alpha_to_one); | 76 | partition.texture.reset( new OpenGL2DTexture(m_screen, m_swizzle_alpha_to_one) ); |
77 | m_partitions.push_back(partition); | 77 | m_partitions.push_back(partition); |
78 | } | 78 | } |
79 | while ((size_t)(total_units) < m_partitions.size()) { | 79 | while ((size_t)(total_units) < m_partitions.size()) { |