You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-20 14:45:44 +00:00
[gles2] fix black bar artifacts
This commit is contained in:
@@ -392,6 +392,12 @@ void RasterizerGLES2::end_frame(bool p_swap_buffers) {
|
||||
OS::get_singleton()->swap_buffers();
|
||||
else
|
||||
glFinish();
|
||||
|
||||
if (p_swap_buffers) {
|
||||
glColorMask(true, true, true, true);
|
||||
glClearColor(0, 0, 0, 1);
|
||||
glClear(GL_COLOR_BUFFER_BIT);
|
||||
}
|
||||
}
|
||||
|
||||
void RasterizerGLES2::finalize() {
|
||||
|
||||
Reference in New Issue
Block a user