create opengl rendering with lots of bugs