summaryrefslogtreecommitdiff
path: root/drivers/gles3
diff options
context:
space:
mode:
authorJuan Linietsky <reduzio@gmail.com>2017-12-19 15:26:18 -0300
committerJuan Linietsky <reduzio@gmail.com>2017-12-19 15:26:18 -0300
commit3ca06e1184e49abd300bce03db1bec0e559c0d03 (patch)
treed2e2bd4a9076d7439014095d8b96fd8ccdf2e962 /drivers/gles3
parent5544b8975083b0472d565d2005ab481e2ea326be (diff)
Propertly deinitialize sampler FBO/Texture, fixes #14586,#14805
Diffstat (limited to 'drivers/gles3')
-rw-r--r--drivers/gles3/rasterizer_storage_gles3.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles3/rasterizer_storage_gles3.cpp b/drivers/gles3/rasterizer_storage_gles3.cpp
index ee6c738a05..8ee9e3fdb8 100644
--- a/drivers/gles3/rasterizer_storage_gles3.cpp
+++ b/drivers/gles3/rasterizer_storage_gles3.cpp
@@ -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;
}
}