glwidget: partition createShader.

Authored by coconnor on Dec 9 2018, 2:24 AM.