avoid calling glew repeatedly

This saves us about 10% of the rendering time.

Change-Id: I3ea7f1849500b025830b44c5175d79ad04aff362