Propertly deinitialize sampler FBO/Texture, fixes #14586,#14805

This commit is contained in:
Juan Linietsky 2017-12-19 15:26:18 -03:00
parent 5544b89750
commit 3ca06e1184

View File

@ -6048,6 +6048,7 @@ void RasterizerStorageGLES3::_render_target_clear(RenderTarget *rt) {
glDeleteTextures(1, &rt->effects.mip_maps[i].color);
rt->effects.mip_maps[i].sizes.clear();
rt->effects.mip_maps[i].levels = 0;
rt->effects.mip_maps[i].color = 0;
}
}