Skip to content

Commit

Permalink
Set correct viewport for every window we render
Browse files Browse the repository at this point in the history
  • Loading branch information
morphis committed Nov 23, 2016
1 parent 64d56de commit 0802496
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/anbox/graphics/emugl/Renderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 0802496

Please sign in to comment.