fixed OpenGL 1 renderer.
still some bugs in GL2