Release cube map surfaces on successful conversion (avoiding a memory leak).

TRAC #17749 Signed-off-by: Daniel Koch Author: Nicolas Capens git-svn-id: https://angleproject.googlecode.com/svn/trunk@720 736b8ea6-26fd-11df-bfd4-992fa37f6226
parent 97b12417
#define MAJOR_VERSION 0
#define MINOR_VERSION 0
#define BUILD_VERSION 0
#define BUILD_REVISION 719
#define BUILD_REVISION 720
#define STRINGIFY(x) #x
#define MACRO_STRINGIFY(x) STRINGIFY(x)
......
......@@ -2255,6 +2255,9 @@ void TextureCubeMap::convertToRenderTarget()
return error(GL_OUT_OF_MEMORY);
}
source->Release();
dest->Release();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment