From a152816c52e23ccba1c5f2f93c2bd29cb873c558 Mon Sep 17 00:00:00 2001 From: clayjohn Date: Wed, 2 Oct 2019 20:21:41 -0700 Subject: [PATCH] remove glViewport call as it wasnt needed and caused crash --- drivers/gles2/rasterizer_storage_gles2.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gles2/rasterizer_storage_gles2.cpp b/drivers/gles2/rasterizer_storage_gles2.cpp index e09e34e2e4d..6faf76e3956 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);