Browse Source

Merge pull request #21134 from dumitru-stama/fix_black_screen

Removed the lines forcing black screen on android GLES2
Thomas Herzog 7 năm trước cách đây
mục cha
commit
f3c09b5088
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  1. 0 6
      drivers/gles2/rasterizer_gles2.cpp

+ 0 - 6
drivers/gles2/rasterizer_gles2.cpp

@@ -392,12 +392,6 @@ 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() {