When I try to play my game, the scene gets messed up. I think it is better if I show you what I mean.

Image:
[![Incorrect rendering (second image)][1]][1]


  [1]: https://i.sstatic.net/pJA0P.jpg

The skydome is completely gone and the order in which the models render is completely wrong. I tried a lot of things, but nothing seems to fix it.

EDIT: The problem with the skydome is fixed. I had to flip the normals.