summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-10-03 08:16:19 +0200
committerGitHub <noreply@github.com>2019-10-03 08:16:19 +0200
commit0deccd4a65c4f1994245834b49e8b431108577d2 (patch)
treef98fe6e9fd2b431778bbe183ce2405aa491a1370
parent059a53ee1de5c86c08459a32d6537c4558d568d5 (diff)
parenta152816c52e23ccba1c5f2f93c2bd29cb873c558 (diff)
Merge pull request #32510 from clayjohn/GLES2-fix-black-editor-and-crash
Remove glViewport call as it wasnt needed and caused crash GLES2
-rw-r--r--drivers/gles2/rasterizer_storage_gles2.cpp1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp
index e09e34e2e4..6faf76e395 100644
--- a/drivers/gles2/rasterizer_storage_gles2.cpp
+++ b/drivers/gles2/rasterizer_storage_gles2.cpp
@@ -4887,7 +4887,6 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
}
glClearColor(1.0, 0.0, 1.0, 0.0);
- glViewport(0, 0, rt->mip_maps[i].sizes[j].width, rt->mip_maps[i].sizes[j].height);
glClear(GL_COLOR_BUFFER_BIT);
if (used_depth) {
glClearDepth(1.0);