1
0
mirror of https://github.com/clementine-player/Clementine synced 2024-12-26 17:42:53 +01:00
Clementine-audio-player-Mac.../3rdparty/libprojectm/patches/07-fix-fbo-fallback-memory-leak.patch

18 lines
533 B
Diff
Raw Normal View History

Index: Renderer/FBO.cpp
===================================================================
--- Renderer/FBO.cpp (revision 2090)
+++ Renderer/FBO.cpp (working copy)
@@ -187,8 +187,11 @@
{
int mindim = width < height ? width : height;
int origtexsize = this->texsize;
- this->texsize = nearestPower2( mindim, SCALE_MINIFY );
+ this->texsize = nearestPower2( mindim, SCALE_MINIFY );
+ if (origtexsize == texsize)
+ return;
+
/* Create the texture that will be bound to the render this */
/*