Rename love.graphics.newCanvas to newRenderTarget

This commit is contained in:
Alex Szpakowski
2020-02-11 19:32:00 -04:00
parent aa636381d0
commit d24b9e9e6f
3 changed files with 130 additions and 78 deletions
+1 -1
View File
@@ -399,7 +399,7 @@ void Texture::unloadVolatile()
if (isRenderTarget() && (fbo != 0 || renderbuffer != 0 || texture != 0))
{
// This is a bit ugly, but we need some way to destroy the cached FBO
// when this texture's texture is destroyed.
// when this texture's GL object is destroyed.
auto gfx = Module::getInstance<Graphics>(Module::M_GRAPHICS);
if (gfx != nullptr)
gfx->cleanupRenderTexture(this);