Fixed bugs in shader and glRenderContext