Browse Source

remove glViewport call as it wasnt needed and caused crash

clayjohn 5 years ago
parent
commit
a152816c52
1 changed files with 0 additions and 1 deletions
  1. 0 1
      drivers/gles2/rasterizer_storage_gles2.cpp

+ 0 - 1
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);