take the correct max function in shader

Change-Id: Ib0f4de5e75120b86a107e885e672066d582240b0
mv renderHelper->Spritedevicehelper,init OglContxt

Change-Id: I81e4035796e47bd845c8f211d30cc2655b9c09f0