Update opengl by using FloatBuffer