rendering working on both linux and android