RenderStates refactored in global scope.
Fixed 13-stencil shaders to be DX friendly + added gles compiled shaders.