StateManager fixes for when you change state in the create function.
TilemapLayer update for WebGL.