summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-03-09 22:51:25 +0100
committerGitHub <noreply@github.com>2019-03-09 22:51:25 +0100
commit8598641b15e5a18c07acff5bb496e74956bb1c74 (patch)
tree644624be746bf37f6382ad59e1e7484fde0b420c
parentbba854bac67a70757e325d9f06bf63fab5519d9e (diff)
parent63bb6808e629d29a2e90307e780ced9f427bcfc0 (diff)
Merge pull request #26845 from clayjohn/gles2_transparent_viewport_bug
GLES2 reallocate texture when transparent is set
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index 8b8f902826..e81508b742 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -4733,6 +4733,7 @@ void RasterizerStorageGLES2::render_target_set_flag(RID p_render_target, RenderT
rt->flags[p_flag] = p_value;
switch (p_flag) {
+ case RENDER_TARGET_TRANSPARENT:
case RENDER_TARGET_HDR:
case RENDER_TARGET_NO_3D:
case RENDER_TARGET_NO_SAMPLING: