better triangle rendering in opengl