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:
ximion
2012-01-05 21:03:53 +00:00
parent 62627138ab
commit f4306c0cd0

View File

@ -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 */
/*