moved initOpengl

it crashes with touch.