Updated gl renderer to properly sort all objects