mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-02-10 01:15:47 +00:00
core: Fix FBO fallback memleak
git-svn-id: https://projectm.svn.sourceforge.net/svnroot/projectm/trunk@1379 6778bc44-b910-0410-a7a0-be141de4315d
This commit is contained in:
@ -190,7 +190,10 @@ RenderTarget::RenderTarget(int texsize, int width, int height) : useFBO(false) {
|
||||
{
|
||||
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 */
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user