mirror of https://github.com/godotengine/godot
Merge pull request #32510 from clayjohn/GLES2-fix-black-editor-and-crash
Remove glViewport call as it wasnt needed and caused crash GLES2
This commit is contained in:
commit
0deccd4a65
|
|
@ -4887,7 +4887,6 @@ void RasterizerStorageGLES2::_render_target_allocate(RenderTarget *rt) {
|
||||||
}
|
}
|
||||||
|
|
||||||
glClearColor(1.0, 0.0, 1.0, 0.0);
|
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);
|
glClear(GL_COLOR_BUFFER_BIT);
|
||||||
if (used_depth) {
|
if (used_depth) {
|
||||||
glClearDepth(1.0);
|
glClearDepth(1.0);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue