Remove unused opengl function.

Change-Id: I172dd1cbf0d26c793ab8fc7a655535e5008e2194