summaryrefslogtreecommitdiff
path: root/drivers/gles2
diff options
context:
space:
mode:
authorclayjohn <claynjohn@gmail.com>2019-10-02 20:21:41 -0700
committerclayjohn <claynjohn@gmail.com>2019-10-02 20:21:41 -0700
commita152816c52e23ccba1c5f2f93c2bd29cb873c558 (patch)
treee83e8c7bdaff85c546e6d123c292e84c2c56b6fc /drivers/gles2
parent893ebd3080225eeeecd4b52920df99d5c53484f7 (diff)
remove glViewport call as it wasnt needed and caused crash
Diffstat (limited to 'drivers/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);