提交 08024962 编写于 作者: S Simon Fels

Set correct viewport for every window we render

上级 64d56de6
......@@ -1156,6 +1156,7 @@ bool Renderer::draw(EGLNativeWindowType native_window, const anbox::graphics::Re
}
setupViewport(w->second, window_frame);
s_gles2.glViewport(0, 0, window_frame.width(), window_frame.height());
s_gles2.glClearColor(0.0, 0.0, 0.0, 1.0);
s_gles2.glColorMask(GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
s_gles2.glClear(GL_COLOR_BUFFER_BIT);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册